/linux-4.1.27/sound/firewire/ |
D | lib.c | 37 int generation, rcode, tries = 0; in snd_fw_transaction() local 45 rcode = fw_run_transaction(device->card, tcode, in snd_fw_transaction() 50 if (rcode == RCODE_COMPLETE) in snd_fw_transaction() 53 if (rcode == RCODE_GENERATION && (flags & FW_FIXED_GENERATION)) in snd_fw_transaction() 56 if (rcode_is_permanent_error(rcode) || ++tries >= 3) { in snd_fw_transaction() 60 fw_rcode_string(rcode)); in snd_fw_transaction()
|
D | lib.h | 18 static inline bool rcode_is_permanent_error(int rcode) in rcode_is_permanent_error() argument 20 return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR; in rcode_is_permanent_error()
|
D | scs1x.c | 84 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.1.27/sound/firewire/fireworks/ |
D | fireworks_transaction.c | 119 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.1.27/drivers/staging/i2o/ |
D | i2o_config.c | 534 u32 rcode = 0; in i2o_cfg_passthru32() local 578 rcode = -EFAULT; in i2o_cfg_passthru32() 592 rcode = -ENOMEM; in i2o_cfg_passthru32() 607 rcode = -EFAULT; in i2o_cfg_passthru32() 618 rcode = -EINVAL; in i2o_cfg_passthru32() 631 rcode = -EINVAL; in i2o_cfg_passthru32() 641 rcode = -ENOMEM; in i2o_cfg_passthru32() 656 rcode = -EFAULT; in i2o_cfg_passthru32() 665 rcode = i2o_msg_post_wait(c, msg, 60); in i2o_cfg_passthru32() 667 if (rcode) { in i2o_cfg_passthru32() [all …]
|
/linux-4.1.27/drivers/scsi/aacraid/ |
D | commctrl.c | 477 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 …]
|
D | aachba.c | 1519 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.1.27/drivers/firewire/ |
D | core-transaction.c | 52 #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 …]
|
D | core-card.c | 306 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()
|
D | core-device.c | 492 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 …]
|
D | sbp2.c | 272 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 …]
|
D | net.c | 703 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 …]
|
D | core-cdev.c | 548 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 …]
|
D | core.h | 246 int rcode, void *payload, size_t length);
|
/linux-4.1.27/drivers/scsi/ |
D | dpt_i2o.c | 327 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.1.27/drivers/staging/fwserial/ |
D | fwserial.c | 88 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.1.27/drivers/staging/ozwpan/ |
D | ozprotocol.h | 222 u8 rcode; member 241 u8 rcode; member 257 u8 rcode; member 274 u8 rcode; member 290 u8 rcode; member 311 u8 rcode; member
|
D | ozusbif.h | 34 void oz_hcd_control_cnf(void *hport, u8 req_id, u8 rcode,
|
D | ozusbsvc1.c | 409 body->rcode, body->data, in oz_usb_rx() 417 body->rcode, NULL, 0); in oz_usb_rx() 424 body->req_id, body->rcode, NULL, 0); in oz_usb_rx() 431 body->rcode, body->data, elt->length- in oz_usb_rx()
|
D | ozhcd.c | 840 u8 rcode, u8 config_num) in oz_hcd_complete_set_config() argument 845 if (rcode == 0) { in oz_hcd_complete_set_config() 862 u8 rcode, u8 if_num, u8 alt) in oz_hcd_complete_set_interface() argument 867 if ((rcode == 0) && (port->config_num > 0)) { in oz_hcd_complete_set_interface() 889 void oz_hcd_control_cnf(void *hport, u8 req_id, u8 rcode, const u8 *data, in oz_hcd_control_cnf() argument 899 oz_dbg(ON, "oz_hcd_control_cnf rcode=%u len=%d\n", rcode, data_len); in oz_hcd_control_cnf() 913 oz_hcd_complete_set_config(port, urb, rcode, in oz_hcd_control_cnf() 917 oz_hcd_complete_set_interface(port, urb, rcode, in oz_hcd_control_cnf()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ctx.c | 53 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.1.27/include/uapi/linux/ |
D | firewire-cdev.h | 119 __u32 rcode; member 350 __u32 rcode; member 528 __u32 rcode; member
|
/linux-4.1.27/drivers/target/sbp/ |
D | sbp_target.c | 838 int sess_gen, sess_node, rcode; in tgt_agent_rw() local 847 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw() 854 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw() 863 rcode = tgt_agent_rw_agent_state(card, tcode, data, agent); in tgt_agent_rw() 866 rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent); in tgt_agent_rw() 869 rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent); in tgt_agent_rw() 872 rcode = tgt_agent_rw_doorbell(card, tcode, data, agent); in tgt_agent_rw() 875 rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode, in tgt_agent_rw() 878 rcode = RCODE_ADDRESS_ERROR; in tgt_agent_rw() 882 fw_send_response(card, request, rcode); in tgt_agent_rw() [all …]
|
/linux-4.1.27/include/linux/ |
D | firewire.h | 267 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.1.27/drivers/block/ |
D | cpqarray.c | 1005 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 …]
|
D | ida_ioctl.h | 53 __u8 rcode; member
|
D | smart1,2.h | 258 if (cmd) ((cmdlist_t*)bus_to_virt(cmd))->req.hdr.rcode = status; in smart1_completed()
|
D | ida_cmd.h | 63 __u8 rcode; member
|
/linux-4.1.27/drivers/media/firewire/ |
D | firedtv-fw.c | 40 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.1.27/sound/firewire/bebob/ |
D | bebob_maudio.c | 97 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.1.27/drivers/mtd/nand/ |
D | nand_bbt.c | 630 uint8_t rcode = td->reserved_block_code; in write_bbt() local 640 if (!rcode) in write_bbt() 641 rcode = 0xff; in write_bbt() 701 msk[2] = ~rcode; in write_bbt()
|
/linux-4.1.27/drivers/isdn/gigaset/ |
D | ev-layer.c | 1533 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()
|