| /linux/sound/firewire/ |
| H A D | lib.c | 38 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()
|
| H A D | lib.h | 21 static inline bool rcode_is_permanent_error(int rcode) in rcode_is_permanent_error() argument 23 return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR; in rcode_is_permanent_error()
|
| /linux/drivers/scsi/aacraid/ |
| H A D | commctrl.c | 491 s32 rcode = 0; in aac_send_raw_srb() local 522 rcode = -EFAULT; in aac_send_raw_srb() 528 rcode = -EINVAL; in aac_send_raw_srb() 534 rcode = PTR_ERR(user_srbcmd); in aac_send_raw_srb() 556 rcode = -EINVAL; in aac_send_raw_srb() 561 rcode = -EINVAL; in aac_send_raw_srb() 577 rcode = -EINVAL; in aac_send_raw_srb() 663 rcode = -EINVAL; in aac_send_raw_srb() 669 rcode = -ENOMEM; in aac_send_raw_srb() 687 rcode = -EFAULT; in aac_send_raw_srb() [all …]
|
| H A D | aachba.c | 1676 int rcode; in aac_send_safw_bmic_cmd() local 1702 rcode = -ENOMEM; in aac_send_safw_bmic_cmd() 1736 rcode = aac_fib_send(ScsiPortCommand64, fibptr, fibsize, FsaNormal, in aac_send_safw_bmic_cmd() 1739 if (rcode == -ERESTARTSYS) in aac_send_safw_bmic_cmd() 1740 rcode = -ERESTART; in aac_send_safw_bmic_cmd() 1742 if (unlikely(rcode < 0)) in aac_send_safw_bmic_cmd() 1753 return rcode; in aac_send_safw_bmic_cmd() 1781 int rcode = -ENOMEM; in aac_issue_safw_bmic_identify() local 1800 rcode = aac_send_safw_bmic_cmd(dev, &srbu, identify_reply, datasize); in aac_issue_safw_bmic_identify() 1801 if (unlikely(rcode < 0)) in aac_issue_safw_bmic_identify() [all …]
|
| H A D | commsup.c | 1764 int rcode = 0; in aac_update_safw_host_devices() local 1766 rcode = aac_setup_safw_adapter(dev); in aac_update_safw_host_devices() 1767 if (unlikely(rcode < 0)) { in aac_update_safw_host_devices() 1785 return rcode; in aac_update_safw_host_devices() 1790 int rcode = 0; in aac_scan_safw_host() local 1792 rcode = aac_update_safw_host_devices(dev); in aac_scan_safw_host() 1793 if (rcode) in aac_scan_safw_host() 1796 return rcode; in aac_scan_safw_host() 1801 int rcode = 0; in aac_scan_host() local 1805 rcode = aac_scan_safw_host(dev); in aac_scan_host() [all …]
|
| /linux/drivers/firewire/ |
| H A D | packet-serdes-test.c | 64 unsigned int rcode) in serialize_async_header_response() argument 67 async_header_set_rcode(header, rcode); in serialize_async_header_response() 74 unsigned int rcode) in serialize_async_header_quadlet_response() argument 77 rcode); in serialize_async_header_quadlet_response() 84 unsigned int rcode, unsigned int data_length, in serialize_async_header_block_response() argument 88 rcode); in serialize_async_header_block_response() 144 unsigned int *rcode) in deserialize_async_header_response() argument 147 *rcode = async_header_get_rcode(header); in deserialize_async_header_response() 154 unsigned int *rcode) in deserialize_async_header_quadlet_response() argument 156 deserialize_async_header_response(header, dst_id, tlabel, retry, tcode, priority, src_id, rcode); in deserialize_async_header_quadlet_response() [all …]
|
| H A D | core-transaction.c | 97 static int close_transaction(struct fw_transaction *transaction, struct fw_card *card, int rcode, in close_transaction() argument 111 t->callback.without_tstamp(card, rcode, NULL, 0, t->callback_data); in close_transaction() 113 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp, NULL, 0, in close_transaction() 449 int rcode; member 452 static void transaction_callback(struct fw_card *card, int rcode, in transaction_callback() argument 457 if (rcode == RCODE_COMPLETE) in transaction_callback() 459 d->rcode = rcode; in transaction_callback() 494 return d.rcode; in fw_run_transaction() 785 int rcode, void *payload, size_t length) in fw_fill_response() argument 799 async_header_set_rcode(response->header, rcode); in fw_fill_response() [all …]
|
| H A D | uapi-test.c | 24 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response, rcode)); in structure_layout_event_response() 55 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response2, rcode)); in structure_layout_event_response2() 69 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_phy_packet2, rcode)); in structure_layout_event_phy_packet2()
|
| H A D | sbp2.c | 260 int rcode; member 440 iter->rcode = RCODE_COMPLETE; in sbp2_status_write() 458 static void complete_transaction(struct fw_card *card, int rcode, in complete_transaction() argument 475 if (orb->rcode == -1) in complete_transaction() 476 orb->rcode = rcode; in complete_transaction() 477 if (orb->rcode != RCODE_COMPLETE) { in complete_transaction() 530 orb->rcode = RCODE_CANCELLED; in sbp2_cancel_orbs() 614 orb->base.rcode); in sbp2_send_management_orb() 618 if (orb->base.rcode != RCODE_COMPLETE) { in sbp2_send_management_orb() 620 orb->base.rcode); in sbp2_send_management_orb() [all …]
|
| H A D | core-card.c | 312 int rcode; in contend_for_bm() local 342 rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, irm_node_id, generation, in contend_for_bm() 348 switch (rcode) { in contend_for_bm() 371 fw_rcode_string(rcode), local_id); in contend_for_bm() 545 int rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, in DEFINE_FREE() local 549 if (rcode == RCODE_GENERATION) in DEFINE_FREE()
|
| H A D | net.c | 708 int rcode; in fwnet_receive_packet() local 715 rcode = RCODE_COMPLETE; in fwnet_receive_packet() 717 rcode = RCODE_ADDRESS_ERROR; in fwnet_receive_packet() 719 rcode = RCODE_TYPE_ERROR; in fwnet_receive_packet() 723 rcode = RCODE_CONFLICT_ERROR; in fwnet_receive_packet() 725 rcode = RCODE_COMPLETE; in fwnet_receive_packet() 728 fw_send_response(card, r, rcode); in fwnet_receive_packet() 923 static void fwnet_write_complete(struct fw_card *card, int rcode, in fwnet_write_complete() argument 930 if (rcode == RCODE_COMPLETE) { in fwnet_write_complete() 933 if (printk_timed_ratelimit(&j, 1000) || rcode != last_rcode) { in fwnet_write_complete() [all …]
|
| H A D | packet-header-definitions.h | 137 unsigned int rcode) in async_header_set_rcode() argument 140 header[1] |= (((u32)rcode) << ASYNC_HEADER_Q1_RCODE_SHIFT) & ASYNC_HEADER_Q1_RCODE_MASK; in async_header_set_rcode()
|
| H A D | ohci.h | 266 static inline void ohci1394_at_data_set_rcode(__le32 *data, unsigned int rcode) in ohci1394_at_data_set_rcode() argument 269 …data[1] |= cpu_to_le32((rcode << OHCI1394_AT_DATA_Q1_rCode_SHIFT) & OHCI1394_AT_DATA_Q1_rCode_MASK… in ohci1394_at_data_set_rcode()
|
| /linux/sound/firewire/oxfw/ |
| H A D | oxfw-scs1x.c | 101 int rcode; in handle_hss() local 104 rcode = RCODE_ADDRESS_ERROR; in handle_hss() 109 rcode = RCODE_TYPE_ERROR; in handle_hss() 119 rcode = RCODE_COMPLETE; in handle_hss() 121 fw_send_response(card, request, rcode); in handle_hss() 124 static void scs_write_callback(struct fw_card *card, int rcode, in scs_write_callback() argument 129 if (!rcode_is_permanent_error(rcode)) { in scs_write_callback() 131 if (rcode == RCODE_COMPLETE) in scs_write_callback()
|
| /linux/drivers/net/ethernet/qlogic/netxen/ |
| H A D | netxen_nic_ctx.c | 37 u32 rcode = NX_RCODE_SUCCESS; in netxen_issue_cmd() local 61 rcode = NX_RCODE_TIMEOUT; in netxen_issue_cmd() 63 rcode = NXRD32(adapter, NX_ARG1_CRB_OFFSET); in netxen_issue_cmd() 66 netxen_nic_driver_name, rcode); in netxen_issue_cmd() 80 return rcode; in netxen_issue_cmd() 219 u32 rcode = NX_RCODE_SUCCESS; in nx_fw_cmd_set_mtu() local 230 rcode = netxen_issue_cmd(adapter, &cmd); in nx_fw_cmd_set_mtu() 232 if (rcode != NX_RCODE_SUCCESS) in nx_fw_cmd_set_mtu() 525 u32 rcode; in nx_fw_cmd_query_phy() local 534 rcode = netxen_issue_cmd(adapter, &cmd); in nx_fw_cmd_query_phy() [all …]
|
| /linux/net/smc/ |
| H A D | smc_stats.h | 110 #define SMC_STAT_TX_PAYLOAD(_smc, length, rcode) \ argument 116 typeof(rcode) _rc = (rcode); \ 125 #define SMC_STAT_RX_PAYLOAD(_smc, length, rcode) \ argument 131 typeof(rcode) _rc = (rcode); \
|
| /linux/drivers/target/sbp/ |
| H A D | sbp_target.c | 802 int sess_gen, sess_node, rcode; in tgt_agent_rw() local 811 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw() 818 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw() 827 rcode = tgt_agent_rw_agent_state(card, tcode, data, agent); in tgt_agent_rw() 830 rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent); in tgt_agent_rw() 833 rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent); in tgt_agent_rw() 836 rcode = tgt_agent_rw_doorbell(card, tcode, data, agent); in tgt_agent_rw() 839 rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode, in tgt_agent_rw() 842 rcode = RCODE_ADDRESS_ERROR; in tgt_agent_rw() 846 fw_send_response(card, request, rcode); in tgt_agent_rw() [all …]
|
| /linux/sound/firewire/tascam/ |
| H A D | tascam-transaction.c | 145 static void async_midi_port_callback(struct fw_card *card, int rcode, in async_midi_port_callback() argument 156 if (rcode == RCODE_COMPLETE) in async_midi_port_callback() 158 else if (!rcode_is_permanent_error(rcode)) in async_midi_port_callback()
|
| /linux/drivers/media/firewire/ |
| H A D | firedtv-fw.c | 41 int rcode, generation = device->generation; in node_req() local 45 rcode = fw_run_transaction(device->card, tcode, device->node_id, in node_req() 48 return rcode != RCODE_COMPLETE ? -EIO : 0; in node_req()
|
| /linux/drivers/s390/cio/ |
| H A D | trace.h | 289 __field(u16, rcode) 299 __entry->rcode = chsc->code; 304 __entry->cc, __entry->rcode)
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_bbt.c | 755 uint8_t rcode = td->reserved_block_code; in write_bbt() local 765 if (!rcode) in write_bbt() 766 rcode = 0xff; in write_bbt() 801 msk[2] = ~rcode; in write_bbt()
|