Searched refs:rcode (Results 1 - 25 of 26) sorted by relevance

12

/linux-master/sound/firewire/
H A Dlib.c38 int generation, rcode, tries = 0; local
46 rcode = fw_run_transaction(device->card, tcode,
51 if (rcode == RCODE_COMPLETE)
54 if (rcode == RCODE_GENERATION && (flags & FW_FIXED_GENERATION))
57 if (rcode_is_permanent_error(rcode) || ++tries >= 3) {
61 fw_rcode_string(rcode));
H A Dlib.h21 static inline bool rcode_is_permanent_error(int rcode) argument
23 return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR;
/linux-master/sound/firewire/fireworks/
H A Dfireworks_transaction.c118 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) argument
136 *rcode = RCODE_CONFLICT_ERROR;
159 *rcode = RCODE_COMPLETE;
166 void *data, size_t length, int *rcode)
191 copy_resp_to_buf(efw, data, length, rcode);
198 void *data, size_t length, int *rcode, u32 seqnum)
219 *rcode = RCODE_COMPLETE;
231 int rcode, dummy; local
234 rcode = RCODE_TYPE_ERROR;
236 rcode
165 handle_resp_for_user(struct fw_card *card, int generation, int source, void *data, size_t length, int *rcode) argument
197 handle_resp_for_kernel(struct fw_card *card, int generation, int source, void *data, size_t length, int *rcode, u32 seqnum) argument
[all...]
/linux-master/drivers/scsi/aacraid/
H A Dcommctrl.c491 s32 rcode = 0; local
522 rcode = -EFAULT;
528 rcode = -EINVAL;
534 rcode = PTR_ERR(user_srbcmd);
556 rcode = -EINVAL;
561 rcode = -EINVAL;
577 rcode = -EINVAL;
663 rcode = -EINVAL;
669 rcode = -ENOMEM;
687 rcode
[all...]
H A Daachba.c1676 int rcode; local
1703 rcode = -ENOMEM;
1737 rcode = aac_fib_send(ScsiPortCommand64, fibptr, fibsize, FsaNormal,
1740 if (rcode == -ERESTARTSYS)
1741 rcode = -ERESTART;
1743 if (unlikely(rcode < 0))
1754 return rcode;
1782 int rcode = -ENOMEM; local
1801 rcode = aac_send_safw_bmic_cmd(dev, &srbu, identify_reply, datasize);
1802 if (unlikely(rcode <
1829 int rcode = -ENOMEM; local
1931 int rcode = 0; local
2011 int rcode = 0; local
2042 int rcode; local
[all...]
H A Dcommsup.c1893 int rcode = 0; local
1895 rcode = aac_setup_safw_adapter(dev);
1896 if (unlikely(rcode < 0)) {
1914 return rcode;
1919 int rcode = 0; local
1921 rcode = aac_update_safw_host_devices(dev);
1922 if (rcode)
1925 return rcode;
1930 int rcode = 0; local
1934 rcode
[all...]
/linux-master/sound/firewire/fireface/
H A Dff-transaction.c11 int rcode)
16 if (rcode_is_permanent_error(rcode)) {
21 if (rcode != RCODE_COMPLETE) {
35 static void finish_transmit_midi0_msg(struct fw_card *card, int rcode, argument
41 finish_transmit_midi_msg(ff, 0, rcode);
44 static void finish_transmit_midi1_msg(struct fw_card *card, int rcode, argument
50 finish_transmit_midi_msg(ff, 1, rcode);
10 finish_transmit_midi_msg(struct snd_ff *ff, unsigned int port, int rcode) argument
/linux-master/drivers/firewire/
H A Duapi-test.c24 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response, rcode));
55 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_response2, rcode));
69 KUNIT_EXPECT_EQ(test, 12, offsetof(struct fw_cdev_event_phy_packet2, rcode));
H A Dcore-transaction.c39 #define HEADER_RCODE(rcode) ((rcode) << 12)
73 static int close_transaction(struct fw_transaction *transaction, struct fw_card *card, int rcode, argument
96 t->callback.without_tstamp(card, rcode, NULL, 0, t->callback_data);
98 t->callback.with_tstamp(card, rcode, t->packet.timestamp, response_tstamp,
220 * rcode, so just forward that to the callback.
427 int rcode; member in struct:transaction_callback_data
430 static void transaction_callback(struct fw_card *card, int rcode, argument
435 if (rcode == RCODE_COMPLETE)
437 d->rcode
729 fw_fill_response(struct fw_packet *response, u32 *request_header, int rcode, void *payload, size_t length) argument
870 fw_send_response(struct fw_card *card, struct fw_request *request, int rcode) argument
1028 int tcode, tlabel, source, rcode; local
1105 fw_rcode_string(int rcode) argument
1183 int rcode = RCODE_COMPLETE; local
[all...]
H A Dcore-card.c293 int gap_count, generation, grace, rcode; local
366 rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP,
371 if (rcode == RCODE_GENERATION)
378 if (rcode == RCODE_COMPLETE && generation == card->generation)
383 if (rcode == RCODE_COMPLETE && bm_id != 0x3f) {
391 if (rcode == RCODE_SEND_ERROR) {
403 if (rcode != RCODE_COMPLETE && !keep_this_irm) {
412 fw_rcode_string(rcode), new_root_id);
525 rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST,
529 if (rcode
[all...]
H A Dsbp2.c260 int rcode; member in struct:sbp2_orb
440 iter->rcode = RCODE_COMPLETE;
458 static void complete_transaction(struct fw_card *card, int rcode, argument
468 * successful and set the rcode to RCODE_COMPLETE for the orb.
469 * So this callback only sets the rcode if it hasn't already
475 if (orb->rcode == -1)
476 orb->rcode = rcode;
477 if (orb->rcode != RCODE_COMPLETE) {
530 orb->rcode
658 complete_agent_reset_write_no_wait(struct fw_card *card, int rcode, void *payload, size_t length, void *data) argument
[all...]
H A Dcore-device.c556 int i, rcode; local
562 rcode = fw_run_transaction(device->card,
565 if (rcode != RCODE_BUSY)
571 return rcode;
1004 int rcode; local
1024 rcode = fw_run_transaction(card, TCODE_READ_QUADLET_REQUEST,
1028 switch (rcode) {
1182 int i, rcode; local
1185 rcode = read_rom(device, generation, i, &q);
1186 if (rcode !
[all...]
H A Dcore-cdev.c548 static void complete_transaction(struct fw_card *card, int rcode, u32 request_tstamp, argument
568 if (rcode == RCODE_COMPLETE)
571 rsp->rcode = rcode;
591 if (rcode == RCODE_COMPLETE)
594 rsp->rcode = rcode;
888 fw_send_response(r->card, r->request, a->rcode);
1559 u32 rcode; local
1564 rcode
[all...]
H A Dnet.c708 int rcode; local
715 rcode = RCODE_COMPLETE;
717 rcode = RCODE_ADDRESS_ERROR;
719 rcode = RCODE_TYPE_ERROR;
723 rcode = RCODE_CONFLICT_ERROR;
725 rcode = RCODE_COMPLETE;
728 fw_send_response(card, r, rcode);
923 static void fwnet_write_complete(struct fw_card *card, int rcode, argument
930 if (rcode == RCODE_COMPLETE) {
933 if (printk_timed_ratelimit(&j, 1000) || rcode !
[all...]
H A Dcore.h245 int rcode, void *payload, size_t length);
/linux-master/net/smc/
H A Dsmc_stats.h108 #define SMC_STAT_TX_PAYLOAD(_smc, length, rcode) \
114 typeof(rcode) _rc = (rcode); \
123 #define SMC_STAT_RX_PAYLOAD(_smc, length, rcode) \
129 typeof(rcode) _rc = (rcode); \
/linux-master/sound/firewire/oxfw/
H A Doxfw-scs1x.c101 int rcode; local
104 rcode = RCODE_ADDRESS_ERROR;
109 rcode = RCODE_TYPE_ERROR;
119 rcode = RCODE_COMPLETE;
121 fw_send_response(card, request, rcode);
124 static void scs_write_callback(struct fw_card *card, int rcode, argument
129 if (!rcode_is_permanent_error(rcode)) {
131 if (rcode == RCODE_COMPLETE)
/linux-master/include/uapi/linux/
H A Dfirewire-cdev.h108 * @rcode: Response code returned by the remote node
118 __u32 rcode; member in struct:fw_cdev_event_response
129 * @rcode: Response code returned by the remote node
146 * packets. @rcode indicates success or failure of such transmissions.
157 __u32 rcode; member in struct:fw_cdev_event_response2
424 * @rcode: %RCODE_..., indicates success or failure of transmission
436 __u32 rcode; member in struct:fw_cdev_event_phy_packet
446 * @rcode: %RCODE_..., indicates success or failure of transmission
476 __u32 rcode; member in struct:fw_cdev_event_phy_packet2
656 * @rcode
668 __u32 rcode; member in struct:fw_cdev_send_response
[all...]
/linux-master/drivers/net/ethernet/qlogic/netxen/
H A Dnetxen_nic_ctx.c37 u32 rcode = NX_RCODE_SUCCESS; local
61 rcode = NX_RCODE_TIMEOUT;
63 rcode = NXRD32(adapter, NX_ARG1_CRB_OFFSET);
66 netxen_nic_driver_name, rcode);
80 return rcode;
219 u32 rcode = NX_RCODE_SUCCESS; local
230 rcode = netxen_issue_cmd(adapter, &cmd);
232 if (rcode != NX_RCODE_SUCCESS)
525 u32 rcode; local
534 rcode
548 u32 rcode; local
[all...]
/linux-master/sound/firewire/tascam/
H A Dtascam-transaction.c145 static void async_midi_port_callback(struct fw_card *card, int rcode, argument
156 if (rcode == RCODE_COMPLETE)
158 else if (!rcode_is_permanent_error(rcode))
/linux-master/include/linux/
H A Dfirewire.h261 typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode,
264 typedef void (*fw_transaction_callback_with_tstamp_t)(struct fw_card *card, int rcode,
356 struct fw_request *request, int rcode);
429 const char *fw_rcode_string(int rcode);
/linux-master/drivers/target/sbp/
H A Dsbp_target.c803 int sess_gen, sess_node, rcode; local
812 rcode = RCODE_TYPE_ERROR;
819 rcode = RCODE_TYPE_ERROR;
828 rcode = tgt_agent_rw_agent_state(card, tcode, data, agent);
831 rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent);
834 rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent);
837 rcode = tgt_agent_rw_doorbell(card, tcode, data, agent);
840 rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode,
843 rcode = RCODE_ADDRESS_ERROR;
847 fw_send_response(card, request, rcode);
1244 rcode = RCODE_COMPLETE; local
1585 int rcode = RCODE_ADDRESS_ERROR; local
[all...]
/linux-master/drivers/media/firewire/
H A Dfiredtv-fw.c41 int rcode, generation = device->generation; local
45 rcode = fw_run_transaction(device->card, tcode, device->node_id,
48 return rcode != RCODE_COMPLETE ? -EIO : 0;
/linux-master/drivers/s390/cio/
H A Dtrace.h289 __field(u16, rcode)
299 __entry->rcode = chsc->code;
303 TP_printk("code=0x%04x cc=%d rcode=0x%04x", __entry->code,
304 __entry->cc, __entry->rcode)
/linux-master/sound/firewire/bebob/
H A Dbebob_maudio.c96 int err, rcode; local
123 rcode = fw_run_transaction(device->card, TCODE_WRITE_BLOCK_REQUEST,
128 if (rcode != RCODE_COMPLETE) {

Completed in 490 milliseconds

12