/Linux-v5.10/drivers/scsi/libfc/ |
D | fc_rport.c | 107 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 …]
|
D | fc_disc.c | 53 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() 258 struct fc_rport_priv *rdata; in fc_disc_done() local 278 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_done() 279 if (!kref_get_unless_zero(&rdata->kref)) in fc_disc_done() 281 if (rdata->disc_id) { in fc_disc_done() 282 if (rdata->disc_id == disc->disc_id) in fc_disc_done() [all …]
|
D | fc_lport.c | 169 struct fc_rport_priv *rdata, in fc_lport_rport_callback() argument 173 rdata->ids.port_id); in fc_lport_rport_callback() 179 lport->dns_rdata = rdata; in fc_lport_rport_callback() 182 lport->ms_rdata = rdata; in fc_lport_rport_callback() 189 "%d state", rdata->ids.port_id, in fc_lport_rport_callback() 191 fc_rport_logoff(rdata); in fc_lport_rport_callback() 197 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback() 199 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback() 916 static int fc_lport_els_prli(struct fc_rport_priv *rdata, u32 spp_len, in fc_lport_els_prli() argument 1401 struct fc_rport_priv *rdata; in fc_lport_enter_dns() local [all …]
|
/Linux-v5.10/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-desc.c | 125 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 …]
|
D | xgbe-drv.c | 1112 struct xgbe_ring_data *rdata; in xgbe_free_tx_data() local 1123 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_tx_data() 1124 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_tx_data() 1135 struct xgbe_ring_data *rdata; in xgbe_free_rx_data() local 1146 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_rx_data() 1147 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_rx_data() 2314 struct xgbe_ring_data *rdata; in xgbe_rx_refresh() local 2317 rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); in xgbe_rx_refresh() 2320 desc_if->unmap_rdata(pdata, rdata); in xgbe_rx_refresh() 2322 if (desc_if->map_rx_buffer(pdata, ring, rdata)) in xgbe_rx_refresh() [all …]
|
/Linux-v5.10/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_tnrdmd_dvbt_mon.c | 29 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 …]
|
D | cxd2880_tnrdmd_mon.c | 20 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()
|
D | cxd2880_top.c | 48 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 …]
|
D | cxd2880_io.c | 35 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-v5.10/drivers/platform/x86/ |
D | msi-laptop.c | 160 u8 wdata = 0, rdata; in get_lcd_level() local 164 &rdata, 1); in get_lcd_level() 168 return (int) rdata / 31; in get_lcd_level() 173 u8 wdata = 4, rdata; in get_auto_brightness() local 177 &rdata, 1); in get_auto_brightness() 181 return !!(rdata & 8); in get_auto_brightness() 186 u8 wdata[2], rdata; in set_auto_brightness() local 192 &rdata, 1); in set_auto_brightness() 197 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness() 206 u8 wdata = 0, rdata; in set_device_state() local [all …]
|
/Linux-v5.10/fs/cifs/ |
D | file.c | 3320 struct cifs_readdata *rdata; in cifs_readdata_direct_alloc() local 3322 rdata = kzalloc(sizeof(*rdata), GFP_KERNEL); in cifs_readdata_direct_alloc() 3323 if (rdata != NULL) { in cifs_readdata_direct_alloc() 3324 rdata->pages = pages; in cifs_readdata_direct_alloc() 3325 kref_init(&rdata->refcount); in cifs_readdata_direct_alloc() 3326 INIT_LIST_HEAD(&rdata->list); in cifs_readdata_direct_alloc() 3327 init_completion(&rdata->done); in cifs_readdata_direct_alloc() 3328 INIT_WORK(&rdata->work, complete); in cifs_readdata_direct_alloc() 3331 return rdata; in cifs_readdata_direct_alloc() 3353 struct cifs_readdata *rdata = container_of(refcount, in cifs_readdata_release() local [all …]
|
/Linux-v5.10/drivers/reset/ |
D | reset-uniphier-glue.c | 27 struct reset_simple_data rdata; member 51 priv->rdata.membase = devm_ioremap_resource(dev, res); in uniphier_glue_reset_probe() 52 if (IS_ERR(priv->rdata.membase)) in uniphier_glue_reset_probe() 53 return PTR_ERR(priv->rdata.membase); in uniphier_glue_reset_probe() 78 spin_lock_init(&priv->rdata.lock); in uniphier_glue_reset_probe() 79 priv->rdata.rcdev.owner = THIS_MODULE; in uniphier_glue_reset_probe() 80 priv->rdata.rcdev.nr_resets = size * BITS_PER_BYTE; in uniphier_glue_reset_probe() 81 priv->rdata.rcdev.ops = &reset_simple_ops; in uniphier_glue_reset_probe() 82 priv->rdata.rcdev.of_node = dev->of_node; in uniphier_glue_reset_probe() 83 priv->rdata.active_low = true; in uniphier_glue_reset_probe() [all …]
|
/Linux-v5.10/drivers/target/tcm_fc/ |
D | tfc_sess.c | 208 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-v5.10/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 166 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-v5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.c | 890 (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-v5.10/drivers/scsi/bnx2fc/ |
D | bnx2fc_tgt.c | 21 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() 163 fc_rport_logoff(rdata); in bnx2fc_offload_session() 272 tgt->rdata->ids.port_id, tgt->num_active_ios.counter); in bnx2fc_flush_active_ios() 352 struct fc_rport_priv *rdata) in bnx2fc_init_tgt() argument 355 struct fc_rport *rport = rdata->rport; in bnx2fc_init_tgt() 362 tgt->rdata = rdata; in bnx2fc_init_tgt() 392 if (rdata->flags & FC_RP_FLAGS_RETRY && in bnx2fc_init_tgt() [all …]
|
/Linux-v5.10/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 2009 static inline struct fcoe_rport *fcoe_ctlr_rport(struct fc_rport_priv *rdata) in fcoe_ctlr_rport() argument 2011 return container_of(rdata, struct fcoe_rport, rdata); in fcoe_ctlr_rport() 2127 struct fc_rport_priv *rdata, in fcoe_ctlr_vn_rport_callback() argument 2131 struct fcoe_rport *frport = fcoe_ctlr_rport(rdata); in fcoe_ctlr_vn_rport_callback() 2134 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback() 2148 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback() 2149 fc_rport_logoff(rdata); in fcoe_ctlr_vn_rport_callback() 2170 struct fc_rport_priv *rdata; in fcoe_ctlr_disc_stop_locked() local 2173 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { in fcoe_ctlr_disc_stop_locked() 2174 if (kref_get_unless_zero(&rdata->kref)) { in fcoe_ctlr_disc_stop_locked() [all …]
|
/Linux-v5.10/drivers/regulator/ |
D | s5m8767.c | 428 struct sec_regulator_data *rdata, in s5m8767_regulator_config_ext_control() argument 433 if (rdata->id != S5M8767_BUCK9) in s5m8767_regulator_config_ext_control() 439 if (opmode->id == rdata->id) { in s5m8767_regulator_config_ext_control() 440 mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; in s5m8767_regulator_config_ext_control() 447 rdata->reg_node, mode); in s5m8767_regulator_config_ext_control() 451 if (!rdata->ext_control_gpiod) { in s5m8767_regulator_config_ext_control() 454 rdata->reg_node); in s5m8767_regulator_config_ext_control() 458 config->ena_gpiod = rdata->ext_control_gpiod; in s5m8767_regulator_config_ext_control() 525 struct sec_regulator_data *rdata; in s5m8767_pmic_dt_parse_pdata() local 544 rdata = devm_kcalloc(&pdev->dev, in s5m8767_pmic_dt_parse_pdata() [all …]
|
/Linux-v5.10/drivers/hid/ |
D | hid-multitouch.c | 585 struct mt_report_data *rdata; in mt_allocate_report_data() local 589 rdata = devm_kzalloc(&td->hdev->dev, sizeof(*rdata), GFP_KERNEL); in mt_allocate_report_data() 590 if (!rdata) in mt_allocate_report_data() 593 rdata->report = report; in mt_allocate_report_data() 594 rdata->application = mt_find_application(td, report); in mt_allocate_report_data() 596 if (!rdata->application) { in mt_allocate_report_data() 597 devm_kfree(&td->hdev->dev, rdata); in mt_allocate_report_data() 609 rdata->is_mt_collection = true; in mt_allocate_report_data() 613 list_add_tail(&rdata->list, &td->reports); in mt_allocate_report_data() 615 return rdata; in mt_allocate_report_data() [all …]
|
/Linux-v5.10/include/trace/events/ |
D | fsi_master_ast_cf.h | 48 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-v5.10/drivers/soc/mediatek/ |
D | mtk-pmic-wrap.c | 1067 int (*pwrap_read)(struct pmic_wrapper *wrp, u32 adr, u32 *rdata); 1165 static int pwrap_read16(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) in pwrap_read16() argument 1181 *rdata = PWRAP_GET_WACS_RDATA(pwrap_readl(wrp, PWRAP_WACS2_RDATA)); in pwrap_read16() 1188 static int pwrap_read32(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) in pwrap_read32() argument 1192 *rdata = 0; in pwrap_read32() 1207 *rdata += (PWRAP_GET_WACS_RDATA(pwrap_readl(wrp, in pwrap_read32() 1216 static int pwrap_read(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) in pwrap_read() argument 1218 return wrp->slave->pwrap_read(wrp, adr, rdata); in pwrap_read() 1239 int ret, msb, rdata; in pwrap_write32() local 1260 pwrap_read(wrp, adr, &rdata); in pwrap_write32() [all …]
|
/Linux-v5.10/drivers/scsi/qedf/ |
D | qedf_els.c | 107 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 …]
|
D | qedf_main.c | 370 struct fc_rport_priv *rdata; in qedf_link_recovery() local 438 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { in qedf_link_recovery() 439 if (kref_get_unless_zero(&rdata->kref)) { in qedf_link_recovery() 440 fc_rport_login(rdata); in qedf_link_recovery() 441 kref_put(&rdata->kref, fc_rport_destroy); in qedf_link_recovery() 720 struct fc_rport_priv *rdata; in qedf_eh_abort() local 733 rdata = fcport->rdata; in qedf_eh_abort() 734 if (!rdata || !kref_get_unless_zero(&rdata->kref)) { in qedf_eh_abort() 746 rdata->ids.port_id); in qedf_eh_abort() 759 io_req->sc_cmd, sc_cmd, rdata->ids.port_id); in qedf_eh_abort() [all …]
|
/Linux-v5.10/drivers/usb/host/ |
D | ohci-dbg.c | 589 u32 rdata; in fill_registers_buffer() local 624 rdata = ohci_readl (ohci, ®s->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, ®s->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, ®s->periodicstart); in fill_registers_buffer() 641 rdata & 0x3fff); in fill_registers_buffer() 645 rdata = ohci_readl (ohci, ®s->lsthresh); in fill_registers_buffer() [all …]
|
/Linux-v5.10/drivers/tty/serial/ |
D | ar933x_uart.c | 122 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 …]
|