Home
last modified time | relevance | path

Searched refs:rdata (Results 1 – 25 of 90) sorted by relevance

1234

/linux/drivers/scsi/libfc/
H A Dfc_rport.c107 struct fc_rport_priv *rdata = NULL, *tmp_rdata; in fc_rport_lookup() local
113 rdata = tmp_rdata; in fc_rport_lookup()
117 return rdata; in fc_rport_lookup()
130 struct fc_rport_priv *rdata; in fc_rport_create() local
131 size_t rport_priv_size = sizeof(*rdata); in fc_rport_create()
135 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create()
136 if (rdata) { in fc_rport_create()
137 kref_put(&rdata->kref, fc_rport_destroy); in fc_rport_create()
138 return rdata; in fc_rport_create()
143 rdata = kzalloc(rport_priv_size, GFP_KERNEL); in fc_rport_create()
[all …]
H A Dfc_disc.c53 struct fc_rport_priv *rdata; in fc_disc_stop_rports() local
57 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_stop_rports()
58 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports()
59 fc_rport_logoff(rdata); in fc_disc_stop_rports()
60 kref_put(&rdata->kref, fc_rport_destroy); in fc_disc_stop_rports()
255 struct fc_rport_priv *rdata; in fc_disc_done() local
275 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_done()
276 if (!kref_get_unless_zero(&rdata->kref)) in fc_disc_done()
278 if (rdata->disc_id) { in fc_disc_done()
279 if (rdata->disc_id == disc->disc_id) in fc_disc_done()
[all …]
H A Dfc_lport.c172 struct fc_rport_priv *rdata, in fc_lport_rport_callback() argument
176 rdata->ids.port_id); in fc_lport_rport_callback()
182 lport->dns_rdata = rdata; in fc_lport_rport_callback()
185 lport->ms_rdata = rdata; in fc_lport_rport_callback()
192 "%d state", rdata->ids.port_id, in fc_lport_rport_callback()
194 fc_rport_logoff(rdata); in fc_lport_rport_callback()
200 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback()
202 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback()
925 static int fc_lport_els_prli(struct fc_rport_priv *rdata, u32 spp_len, in fc_lport_els_prli() argument
1416 struct fc_rport_priv *rdata; in fc_lport_enter_dns() local
[all …]
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-desc.c125 struct xgbe_ring_data *rdata; in xgbe_free_ring() local
131 if (ring->rdata) { in xgbe_free_ring()
133 rdata = XGBE_GET_DESC_DATA(ring, i); in xgbe_free_ring()
134 xgbe_unmap_rdata(pdata, rdata); in xgbe_free_ring()
137 kfree(ring->rdata); in xgbe_free_ring()
138 ring->rdata = NULL; in xgbe_free_ring()
235 ring->rdata = xgbe_alloc_node(size, ring->node); in xgbe_init_ring()
236 if (!ring->rdata) in xgbe_init_ring()
241 ring->rdesc, &ring->rdesc_dma, ring->rdata, ring->node); in xgbe_init_ring()
358 struct xgbe_ring_data *rdata) in xgbe_map_rx_buffer() argument
[all …]
H A Dxgbe-drv.c1131 struct xgbe_ring_data *rdata; in xgbe_free_tx_data() local
1142 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_tx_data()
1143 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_tx_data()
1154 struct xgbe_ring_data *rdata; in xgbe_free_rx_data() local
1165 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_rx_data()
1166 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_rx_data()
2325 struct xgbe_ring_data *rdata; in xgbe_rx_refresh() local
2328 rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); in xgbe_rx_refresh()
2331 desc_if->unmap_rdata(pdata, rdata); in xgbe_rx_refresh()
2333 if (desc_if->map_rx_buffer(pdata, ring, rdata)) in xgbe_rx_refresh()
[all …]
H A Dxgbe-dev.c1446 static void xgbe_tx_desc_reset(struct xgbe_ring_data *rdata) in xgbe_tx_desc_reset() argument
1448 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_tx_desc_reset()
1468 struct xgbe_ring_data *rdata; in xgbe_tx_desc_init() local
1476 rdata = XGBE_GET_DESC_DATA(ring, i); in xgbe_tx_desc_init()
1479 xgbe_tx_desc_reset(rdata); in xgbe_tx_desc_init()
1486 rdata = XGBE_GET_DESC_DATA(ring, start_index); in xgbe_tx_desc_init()
1488 upper_32_bits(rdata->rdesc_dma)); in xgbe_tx_desc_init()
1490 lower_32_bits(rdata->rdesc_dma)); in xgbe_tx_desc_init()
1496 struct xgbe_ring_data *rdata, unsigned int index) in xgbe_rx_desc_reset() argument
1498 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_rx_desc_reset()
[all …]
/linux/drivers/media/dvb-frontends/cxd2880/
H A Dcxd2880_tnrdmd_dvbt_mon.c29 u8 rdata = 0x00; in cxd2880_tnrdmd_dvbt_mon_sync_stat() local
48 0x10, &rdata, 1); in cxd2880_tnrdmd_dvbt_mon_sync_stat()
52 *unlock_detected = (rdata & 0x10) ? 1 : 0; in cxd2880_tnrdmd_dvbt_mon_sync_stat()
53 *sync_stat = rdata & 0x07; in cxd2880_tnrdmd_dvbt_mon_sync_stat()
54 *ts_lock_stat = (rdata & 0x20) ? 1 : 0; in cxd2880_tnrdmd_dvbt_mon_sync_stat()
87 u8 rdata = 0x00; in cxd2880_tnrdmd_dvbt_mon_mode_guard() local
125 0x1b, &rdata, 1); in cxd2880_tnrdmd_dvbt_mon_mode_guard()
133 *mode = (enum cxd2880_dvbt_mode)((rdata >> 2) & 0x03); in cxd2880_tnrdmd_dvbt_mon_mode_guard()
134 *guard = (enum cxd2880_dvbt_guard)(rdata & 0x03); in cxd2880_tnrdmd_dvbt_mon_mode_guard()
142 u8 rdata[4]; in cxd2880_tnrdmd_dvbt_mon_carrier_offset() local
[all …]
H A Dcxd2880_tnrdmd_mon.c20 u8 rdata[2]; in cxd2880_tnrdmd_mon_rf_lvl() local
63 0x15, rdata, 2); in cxd2880_tnrdmd_mon_rf_lvl()
67 if (rdata[0] || rdata[1]) in cxd2880_tnrdmd_mon_rf_lvl()
72 0x11, rdata, 2); in cxd2880_tnrdmd_mon_rf_lvl()
77 cxd2880_convert2s_complement((rdata[0] << 3) | in cxd2880_tnrdmd_mon_rf_lvl()
78 ((rdata[1] & 0xe0) >> 5), 11); in cxd2880_tnrdmd_mon_rf_lvl()
H A Dcxd2880_top.c48 u8 rdata[2]; in cxd2880_pre_bit_err_t() local
77 0x39, rdata, 1); in cxd2880_pre_bit_err_t()
83 if ((rdata[0] & 0x01) == 0) { in cxd2880_pre_bit_err_t()
90 0x22, rdata, 2); in cxd2880_pre_bit_err_t()
96 *pre_bit_err = (rdata[0] << 8) | rdata[1]; in cxd2880_pre_bit_err_t()
100 0x6f, rdata, 1); in cxd2880_pre_bit_err_t()
108 *pre_bit_count = ((rdata[0] & 0x07) == 0) ? in cxd2880_pre_bit_err_t()
109 256 : (0x1000 << (rdata[0] & 0x07)); in cxd2880_pre_bit_err_t()
200 u8 rdata[3]; in cxd2880_post_bit_err_t() local
225 0x15, rdata, 3); in cxd2880_post_bit_err_t()
[all …]
H A Dcxd2880_io.c35 u8 rdata = 0x00; in cxd2880_io_set_reg_bits() local
37 ret = io->read_regs(io, tgt, sub_address, &rdata, 1); in cxd2880_io_set_reg_bits()
41 data = (data & mask) | (rdata & (mask ^ 0xff)); in cxd2880_io_set_reg_bits()
/linux/drivers/platform/x86/
H A Dmsi-laptop.c158 u8 wdata = 0, rdata; in get_lcd_level() local
162 &rdata, 1); in get_lcd_level()
166 return (int) rdata / 31; in get_lcd_level()
171 u8 wdata = 4, rdata; in get_auto_brightness() local
175 &rdata, 1); in get_auto_brightness()
179 return !!(rdata & 8); in get_auto_brightness()
184 u8 wdata[2], rdata; in set_auto_brightness() local
190 &rdata, 1); in set_auto_brightness()
195 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness()
204 u8 wdata = 0, rdata; in set_device_state() local
[all …]
/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c208 struct fc_rport_priv *rdata) in ft_sess_create() argument
215 ft_format_wwn(&initiatorname[0], TRANSPORT_IQN_LEN, rdata->ids.port_name); in ft_sess_create()
347 static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len, in ft_prli_locked() argument
354 tport = ft_tport_get(rdata->local_port); in ft_prli_locked()
379 sess = ft_sess_create(tport, rdata->ids.port_id, rdata); in ft_prli_locked()
388 rdata->prli_count++; in ft_prli_locked()
390 sess->port_name = rdata->ids.port_name; in ft_prli_locked()
391 sess->max_frame = rdata->maxframe_size; in ft_prli_locked()
421 static int ft_prli(struct fc_rport_priv *rdata, u32 spp_len, in ft_prli() argument
427 ret = ft_prli_locked(rdata, spp_len, rspp, spp); in ft_prli()
[all …]
/linux/drivers/regulator/
H A Dirq_helpers.c25 struct regulator_irq_data rdata; member
61 rid = &h->rdata; in regulator_notifier_isr_work()
166 rid = &h->rdata; in regulator_notifier_isr()
286 h->rdata.states = devm_kzalloc(dev, sizeof(*h->rdata.states) * in init_rdev_state()
288 if (!h->rdata.states) in init_rdev_state()
291 h->rdata.num_states = rdev_amount; in init_rdev_state()
292 h->rdata.data = h->desc.data; in init_rdev_state()
295 h->rdata.states[i].possible_errs = common_err; in init_rdev_state()
297 h->rdata.states[i].possible_errs |= *rdev_err++; in init_rdev_state()
298 h->rdata.states[i].rdev = *rdev++; in init_rdev_state()
[all …]
H A Ds5m8767.c429 struct sec_regulator_data *rdata, in s5m8767_regulator_config_ext_control() argument
434 if (rdata->id != S5M8767_BUCK9) in s5m8767_regulator_config_ext_control()
440 if (opmode->id == rdata->id) { in s5m8767_regulator_config_ext_control()
441 mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; in s5m8767_regulator_config_ext_control()
448 rdata->reg_node, mode); in s5m8767_regulator_config_ext_control()
452 if (!rdata->ext_control_gpiod) { in s5m8767_regulator_config_ext_control()
455 rdata->reg_node); in s5m8767_regulator_config_ext_control()
459 config->ena_gpiod = rdata->ext_control_gpiod; in s5m8767_regulator_config_ext_control()
526 struct sec_regulator_data *rdata; in s5m8767_pmic_dt_parse_pdata() local
546 rdata = devm_kcalloc(&pdev->dev, in s5m8767_pmic_dt_parse_pdata()
[all …]
/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.c890 (struct eth_classify_rules_ramrod_data *)(raw->rdata); in bnx2x_set_one_mac_e2()
1051 (struct mac_configuration_cmd *)(raw->rdata); in bnx2x_set_one_mac_e1x()
1074 (struct eth_classify_rules_ramrod_data *)(raw->rdata); in bnx2x_set_one_vlan_e2()
1124 (struct eth_classify_rules_ramrod_data *)(raw->rdata); in bnx2x_set_one_vlan_mac_e2()
1190 (struct mac_configuration_cmd *)(raw->rdata); in bnx2x_set_one_vlan_mac_e1h()
2097 u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, in bnx2x_init_raw_obj() argument
2103 raw->rdata = rdata; in bnx2x_init_raw_obj()
2115 u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, in bnx2x_init_vlan_mac_common() argument
2133 bnx2x_init_raw_obj(&o->raw, cl_id, cid, func_id, rdata, rdata_mapping, in bnx2x_init_vlan_mac_common()
2139 u8 cl_id, u32 cid, u8 func_id, void *rdata, in bnx2x_init_mac_obj() argument
[all …]
/linux/drivers/media/usb/pvrusb2/
H A Dpvrusb2-i2c-core.c166 u8 *rdata, in pvr2_i2c_basic_op() argument
169 if (!rdata) rlen = 0; in pvr2_i2c_basic_op()
172 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); in pvr2_i2c_basic_op()
186 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_24xxx_ir() argument
207 if (rlen > 0) rdata[0] = 0; in i2c_24xxx_ir()
208 if (rlen > 1) rdata[1] = 0; in i2c_24xxx_ir()
229 rdata[2] = 0xc1; in i2c_24xxx_ir()
232 rdata[0] = 0; in i2c_24xxx_ir()
233 rdata[1] = 0; in i2c_24xxx_ir()
244 rdata[0] = (val >> 8) & 0xffu; in i2c_24xxx_ir()
[all …]
/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_tgt.c21 struct fc_rport_priv *rdata);
82 struct fc_rport_priv *rdata) in bnx2fc_offload_session() argument
84 struct fc_rport *rport = rdata->rport; in bnx2fc_offload_session()
92 rval = bnx2fc_init_tgt(tgt, port, rdata); in bnx2fc_offload_session()
161 fc_rport_logoff(rdata); in bnx2fc_offload_session()
270 tgt->rdata->ids.port_id, tgt->num_active_ios.counter); in bnx2fc_flush_active_ios()
350 struct fc_rport_priv *rdata) in bnx2fc_init_tgt() argument
353 struct fc_rport *rport = rdata->rport; in bnx2fc_init_tgt()
360 tgt->rdata = rdata; in bnx2fc_init_tgt()
390 if (rdata->flags & FC_RP_FLAGS_RETRY && in bnx2fc_init_tgt()
[all …]
/linux/drivers/scsi/fcoe/
H A Dfcoe_ctlr.c2001 static inline struct fcoe_rport *fcoe_ctlr_rport(struct fc_rport_priv *rdata) in fcoe_ctlr_rport() argument
2003 return container_of(rdata, struct fcoe_rport, rdata); in fcoe_ctlr_rport()
2119 struct fc_rport_priv *rdata, in fcoe_ctlr_vn_rport_callback() argument
2123 struct fcoe_rport *frport = fcoe_ctlr_rport(rdata); in fcoe_ctlr_vn_rport_callback()
2126 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback()
2140 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback()
2141 fc_rport_logoff(rdata); in fcoe_ctlr_vn_rport_callback()
2162 struct fc_rport_priv *rdata; in fcoe_ctlr_disc_stop_locked() local
2165 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { in fcoe_ctlr_disc_stop_locked()
2166 if (kref_get_unless_zero(&rdata->kref)) { in fcoe_ctlr_disc_stop_locked()
[all …]
/linux/drivers/hid/
H A Dhid-multitouch.c628 struct mt_report_data *rdata; in mt_allocate_report_data() local
632 rdata = devm_kzalloc(&td->hdev->dev, sizeof(*rdata), GFP_KERNEL); in mt_allocate_report_data()
633 if (!rdata) in mt_allocate_report_data()
636 rdata->report = report; in mt_allocate_report_data()
637 rdata->application = mt_find_application(td, report); in mt_allocate_report_data()
639 if (!rdata->application) { in mt_allocate_report_data()
640 devm_kfree(&td->hdev->dev, rdata); in mt_allocate_report_data()
653 rdata->is_mt_collection = true; in mt_allocate_report_data()
660 list_add_tail(&rdata->list, &td->reports); in mt_allocate_report_data()
662 return rdata; in mt_allocate_report_data()
[all …]
/linux/include/trace/events/
H A Dfsi_master_ast_cf.h48 TP_PROTO(const struct fsi_master_acf *master, u8 rtag, u8 rcrc, __be32 rdata, bool crc_ok),
49 TP_ARGS(master, rtag, rcrc, rdata, crc_ok),
54 __field(u32, rdata)
61 __entry->rdata = be32_to_cpu(rdata);
66 __entry->rdata, __entry->crc_ok ? ' ' : '!'
/linux/fs/smb/client/
H A Dsmb2pdu.c4412 struct cifs_io_parms *io_parms, struct cifs_io_subrequest *rdata, in smb2_new_read_req() argument
4440 trace_smb3_read_enter(rdata ? rdata->rreq->debug_id : 0, in smb2_new_read_req()
4441 rdata ? rdata->subreq.debug_index : 0, in smb2_new_read_req()
4442 rdata ? rdata->xid : 0, in smb2_new_read_req()
4451 if (rdata && smb3_use_rdma_offload(io_parms)) { in smb2_new_read_req()
4455 rdata->mr = smbd_register_mr(server->smbd_conn, &rdata->subreq.io_iter, in smb2_new_read_req()
4457 if (!rdata->mr) in smb2_new_read_req()
4468 v1->offset = cpu_to_le64(rdata->mr->mr->iova); in smb2_new_read_req()
4469 v1->token = cpu_to_le32(rdata->mr->mr->rkey); in smb2_new_read_req()
4470 v1->length = cpu_to_le32(rdata->mr->mr->length); in smb2_new_read_req()
[all …]
/linux/drivers/scsi/qedf/
H A Dqedf_els.c107 did = fcport->rdata->ids.port_id; in qedf_initiate_els()
349 hton24(fh->fh_s_id, fcport->rdata->ids.port_id); in qedf_process_l2_frame_compl()
371 struct fc_rport_priv *rdata; in qedf_restart_rport() local
394 rdata = fcport->rdata; in qedf_restart_rport()
395 if (rdata && !kref_get_unless_zero(&rdata->kref)) { in qedf_restart_rport()
396 fcport->rdata = NULL; in qedf_restart_rport()
397 rdata = NULL; in qedf_restart_rport()
400 if (rdata && rdata->rp_state == RPORT_ST_READY) { in qedf_restart_rport()
402 port_id = rdata->ids.port_id; in qedf_restart_rport()
405 fc_rport_logoff(rdata); in qedf_restart_rport()
[all …]
H A Dqedf_debugfs.c330 struct fc_rport_priv *rdata; in qedf_driver_stats_show() local
360 rdata = fcport->rdata; in qedf_driver_stats_show()
361 if (rdata == NULL) in qedf_driver_stats_show()
364 rdata->rport->node_name, rdata->rport->port_name, in qedf_driver_stats_show()
365 rdata->ids.port_id, in qedf_driver_stats_show()
366 fc_rport_state_names[rdata->rp_state], in qedf_driver_stats_show()
/linux/drivers/tty/serial/
H A Dar933x_uart.c122 unsigned int rdata; in ar933x_uart_putc() local
124 rdata = ch & AR933X_UART_DATA_TX_RX_MASK; in ar933x_uart_putc()
125 rdata |= AR933X_UART_DATA_TX_CSR; in ar933x_uart_putc()
126 ar933x_uart_write(up, AR933X_UART_DATA_REG, rdata); in ar933x_uart_putc()
134 unsigned int rdata; in ar933x_uart_tx_empty() local
137 rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); in ar933x_uart_tx_empty()
140 return (rdata & AR933X_UART_DATA_TX_CSR) ? 0 : TIOCSER_TEMT; in ar933x_uart_tx_empty()
367 unsigned int rdata; in ar933x_uart_rx_chars() local
370 rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); in ar933x_uart_rx_chars()
371 if ((rdata & AR933X_UART_DATA_RX_CSR) == 0) in ar933x_uart_rx_chars()
[all …]
/linux/drivers/usb/host/
H A Dohci-dbg.c589 u32 rdata; in fill_registers_buffer() local
624 rdata = ohci_readl (ohci, &regs->fminterval); in fill_registers_buffer()
627 rdata, (rdata >> 31) ? "FIT " : "", in fill_registers_buffer()
628 (rdata >> 16) & 0xefff, rdata & 0xffff); in fill_registers_buffer()
632 rdata = ohci_readl (ohci, &regs->fmremaining); in fill_registers_buffer()
634 rdata, (rdata >> 31) ? "FRT " : "", in fill_registers_buffer()
635 rdata & 0x3fff); in fill_registers_buffer()
639 rdata = ohci_readl (ohci, &regs->periodicstart); in fill_registers_buffer()
641 rdata & 0x3fff); in fill_registers_buffer()
645 rdata = ohci_readl (ohci, &regs->lsthresh); in fill_registers_buffer()
[all …]

1234