/Linux-v4.19/drivers/scsi/libfc/ |
D | fc_rport.c | 119 struct fc_rport_priv *rdata = NULL, *tmp_rdata; in fc_rport_lookup() local 125 rdata = tmp_rdata; in fc_rport_lookup() 129 return rdata; in fc_rport_lookup() 142 struct fc_rport_priv *rdata; in fc_rport_create() local 146 rdata = fc_rport_lookup(lport, port_id); in fc_rport_create() 147 if (rdata) in fc_rport_create() 148 return rdata; in fc_rport_create() 150 rdata = kzalloc(sizeof(*rdata) + lport->rport_priv_size, GFP_KERNEL); in fc_rport_create() 151 if (!rdata) in fc_rport_create() 154 rdata->ids.node_name = -1; in fc_rport_create() [all …]
|
D | fc_disc.c | 65 struct fc_rport_priv *rdata; in fc_disc_stop_rports() local 69 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_stop_rports() 70 if (kref_get_unless_zero(&rdata->kref)) { in fc_disc_stop_rports() 71 fc_rport_logoff(rdata); in fc_disc_stop_rports() 72 kref_put(&rdata->kref, fc_rport_destroy); in fc_disc_stop_rports() 270 struct fc_rport_priv *rdata; in fc_disc_done() local 290 list_for_each_entry(rdata, &disc->rports, peers) { in fc_disc_done() 291 if (!kref_get_unless_zero(&rdata->kref)) in fc_disc_done() 293 if (rdata->disc_id) { in fc_disc_done() 294 if (rdata->disc_id == disc->disc_id) in fc_disc_done() [all …]
|
D | fc_lport.c | 181 struct fc_rport_priv *rdata, in fc_lport_rport_callback() argument 185 rdata->ids.port_id); in fc_lport_rport_callback() 191 lport->dns_rdata = rdata; in fc_lport_rport_callback() 194 lport->ms_rdata = rdata; in fc_lport_rport_callback() 201 "%d state", rdata->ids.port_id, in fc_lport_rport_callback() 203 fc_rport_logoff(rdata); in fc_lport_rport_callback() 209 if (rdata->ids.port_id == FC_FID_DIR_SERV) in fc_lport_rport_callback() 211 else if (rdata->ids.port_id == FC_FID_MGMT_SERV) in fc_lport_rport_callback() 928 static int fc_lport_els_prli(struct fc_rport_priv *rdata, u32 spp_len, in fc_lport_els_prli() argument 1412 struct fc_rport_priv *rdata; in fc_lport_enter_dns() local [all …]
|
/Linux-v4.19/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 | 1188 struct xgbe_ring_data *rdata; in xgbe_free_tx_data() local 1199 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_tx_data() 1200 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_tx_data() 1211 struct xgbe_ring_data *rdata; in xgbe_free_rx_data() local 1222 rdata = XGBE_GET_DESC_DATA(ring, j); in xgbe_free_rx_data() 1223 desc_if->unmap_rdata(pdata, rdata); in xgbe_free_rx_data() 2523 struct xgbe_ring_data *rdata; in xgbe_rx_refresh() local 2526 rdata = XGBE_GET_DESC_DATA(ring, ring->dirty); in xgbe_rx_refresh() 2529 desc_if->unmap_rdata(pdata, rdata); in xgbe_rx_refresh() 2531 if (desc_if->map_rx_buffer(pdata, ring, rdata)) in xgbe_rx_refresh() [all …]
|
D | xgbe-dev.c | 1379 static void xgbe_tx_desc_reset(struct xgbe_ring_data *rdata) in xgbe_tx_desc_reset() argument 1381 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_tx_desc_reset() 1401 struct xgbe_ring_data *rdata; in xgbe_tx_desc_init() local 1409 rdata = XGBE_GET_DESC_DATA(ring, i); in xgbe_tx_desc_init() 1412 xgbe_tx_desc_reset(rdata); in xgbe_tx_desc_init() 1419 rdata = XGBE_GET_DESC_DATA(ring, start_index); in xgbe_tx_desc_init() 1421 upper_32_bits(rdata->rdesc_dma)); in xgbe_tx_desc_init() 1423 lower_32_bits(rdata->rdesc_dma)); in xgbe_tx_desc_init() 1429 struct xgbe_ring_data *rdata, unsigned int index) in xgbe_rx_desc_reset() argument 1431 struct xgbe_ring_desc *rdesc = rdata->rdesc; in xgbe_rx_desc_reset() [all …]
|
/Linux-v4.19/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_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()
|
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 …]
|
/Linux-v4.19/drivers/platform/x86/ |
D | msi-laptop.c | 173 u8 wdata = 0, rdata; in get_lcd_level() local 177 &rdata, 1); in get_lcd_level() 181 return (int) rdata / 31; in get_lcd_level() 186 u8 wdata = 4, rdata; in get_auto_brightness() local 190 &rdata, 1); in get_auto_brightness() 194 return !!(rdata & 8); in get_auto_brightness() 199 u8 wdata[2], rdata; in set_auto_brightness() local 205 &rdata, 1); in set_auto_brightness() 210 wdata[1] = (rdata & 0xF7) | (enable ? 8 : 0); in set_auto_brightness() 219 u8 wdata = 0, rdata; in set_device_state() local [all …]
|
/Linux-v4.19/drivers/reset/ |
D | reset-uniphier-usb3.c | 28 struct reset_simple_data rdata; member 52 priv->rdata.membase = devm_ioremap_resource(dev, res); in uniphier_usb3_reset_probe() 53 if (IS_ERR(priv->rdata.membase)) in uniphier_usb3_reset_probe() 54 return PTR_ERR(priv->rdata.membase); in uniphier_usb3_reset_probe() 79 spin_lock_init(&priv->rdata.lock); in uniphier_usb3_reset_probe() 80 priv->rdata.rcdev.owner = THIS_MODULE; in uniphier_usb3_reset_probe() 81 priv->rdata.rcdev.nr_resets = size * BITS_PER_BYTE; in uniphier_usb3_reset_probe() 82 priv->rdata.rcdev.ops = &reset_simple_ops; in uniphier_usb3_reset_probe() 83 priv->rdata.rcdev.of_node = dev->of_node; in uniphier_usb3_reset_probe() 84 priv->rdata.active_low = true; in uniphier_usb3_reset_probe() [all …]
|
/Linux-v4.19/fs/cifs/ |
D | file.c | 2885 struct cifs_readdata *rdata; in cifs_readdata_direct_alloc() local 2887 rdata = kzalloc(sizeof(*rdata), GFP_KERNEL); in cifs_readdata_direct_alloc() 2888 if (rdata != NULL) { in cifs_readdata_direct_alloc() 2889 rdata->pages = pages; in cifs_readdata_direct_alloc() 2890 kref_init(&rdata->refcount); in cifs_readdata_direct_alloc() 2891 INIT_LIST_HEAD(&rdata->list); in cifs_readdata_direct_alloc() 2892 init_completion(&rdata->done); in cifs_readdata_direct_alloc() 2893 INIT_WORK(&rdata->work, complete); in cifs_readdata_direct_alloc() 2896 return rdata; in cifs_readdata_direct_alloc() 2918 struct cifs_readdata *rdata = container_of(refcount, in cifs_readdata_release() local [all …]
|
/Linux-v4.19/drivers/target/tcm_fc/ |
D | tfc_sess.c | 220 struct fc_rport_priv *rdata) in ft_sess_create() argument 227 ft_format_wwn(&initiatorname[0], TRANSPORT_IQN_LEN, rdata->ids.port_name); in ft_sess_create() 359 static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len, in ft_prli_locked() argument 366 tport = ft_tport_get(rdata->local_port); in ft_prli_locked() 391 sess = ft_sess_create(tport, rdata->ids.port_id, rdata); in ft_prli_locked() 400 rdata->prli_count++; in ft_prli_locked() 402 sess->port_name = rdata->ids.port_name; in ft_prli_locked() 403 sess->max_frame = rdata->maxframe_size; in ft_prli_locked() 433 static int ft_prli(struct fc_rport_priv *rdata, u32 spp_len, in ft_prli() argument 439 ret = ft_prli_locked(rdata, spp_len, rspp, spp); in ft_prli() [all …]
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_sp.c | 888 (struct eth_classify_rules_ramrod_data *)(raw->rdata); in bnx2x_set_one_mac_e2() 1049 (struct mac_configuration_cmd *)(raw->rdata); in bnx2x_set_one_mac_e1x() 1072 (struct eth_classify_rules_ramrod_data *)(raw->rdata); in bnx2x_set_one_vlan_e2() 1122 (struct eth_classify_rules_ramrod_data *)(raw->rdata); in bnx2x_set_one_vlan_mac_e2() 1188 (struct mac_configuration_cmd *)(raw->rdata); in bnx2x_set_one_vlan_mac_e1h() 2095 u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, int state, in bnx2x_init_raw_obj() argument 2101 raw->rdata = rdata; in bnx2x_init_raw_obj() 2113 u8 cl_id, u32 cid, u8 func_id, void *rdata, dma_addr_t rdata_mapping, in bnx2x_init_vlan_mac_common() argument 2131 bnx2x_init_raw_obj(&o->raw, cl_id, cid, func_id, rdata, rdata_mapping, in bnx2x_init_vlan_mac_common() 2137 u8 cl_id, u32 cid, u8 func_id, void *rdata, in bnx2x_init_mac_obj() argument [all …]
|
/Linux-v4.19/drivers/media/usb/pvrusb2/ |
D | pvrusb2-i2c-core.c | 176 u8 *rdata, in pvr2_i2c_basic_op() argument 179 if (!rdata) rlen = 0; in pvr2_i2c_basic_op() 182 return pvr2_i2c_read(hdw,i2c_addr,wdata,wlen,rdata,rlen); in pvr2_i2c_basic_op() 196 u8 i2c_addr,u8 *wdata,u16 wlen,u8 *rdata,u16 rlen) in i2c_24xxx_ir() argument 217 if (rlen > 0) rdata[0] = 0; in i2c_24xxx_ir() 218 if (rlen > 1) rdata[1] = 0; in i2c_24xxx_ir() 239 rdata[2] = 0xc1; in i2c_24xxx_ir() 242 rdata[0] = 0; in i2c_24xxx_ir() 243 rdata[1] = 0; in i2c_24xxx_ir() 254 rdata[0] = (val >> 8) & 0xffu; in i2c_24xxx_ir() [all …]
|
/Linux-v4.19/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-v4.19/drivers/scsi/fcoe/ |
D | fcoe_ctlr.c | 2015 static inline struct fcoe_rport *fcoe_ctlr_rport(struct fc_rport_priv *rdata) in fcoe_ctlr_rport() argument 2017 return (struct fcoe_rport *)(rdata + 1); in fcoe_ctlr_rport() 2133 struct fc_rport_priv *rdata, in fcoe_ctlr_vn_rport_callback() argument 2137 struct fcoe_rport *frport = fcoe_ctlr_rport(rdata); in fcoe_ctlr_vn_rport_callback() 2140 rdata->ids.port_id, event); in fcoe_ctlr_vn_rport_callback() 2154 rdata->ids.port_id); in fcoe_ctlr_vn_rport_callback() 2155 fc_rport_logoff(rdata); in fcoe_ctlr_vn_rport_callback() 2176 struct fc_rport_priv *rdata; in fcoe_ctlr_disc_stop_locked() local 2179 list_for_each_entry_rcu(rdata, &lport->disc.rports, peers) { in fcoe_ctlr_disc_stop_locked() 2180 if (kref_get_unless_zero(&rdata->kref)) { in fcoe_ctlr_disc_stop_locked() [all …]
|
/Linux-v4.19/drivers/hid/ |
D | hid-multitouch.c | 569 struct mt_report_data *rdata; in mt_allocate_report_data() local 573 rdata = devm_kzalloc(&td->hdev->dev, sizeof(*rdata), GFP_KERNEL); in mt_allocate_report_data() 574 if (!rdata) in mt_allocate_report_data() 577 rdata->report = report; in mt_allocate_report_data() 578 rdata->application = mt_find_application(td, report->application); in mt_allocate_report_data() 580 if (!rdata->application) { in mt_allocate_report_data() 581 devm_kfree(&td->hdev->dev, rdata); in mt_allocate_report_data() 593 rdata->is_mt_collection = true; in mt_allocate_report_data() 597 list_add_tail(&rdata->list, &td->reports); in mt_allocate_report_data() 599 return rdata; in mt_allocate_report_data() [all …]
|
/Linux-v4.19/drivers/soc/mediatek/ |
D | mtk-pmic-wrap.c | 711 int (*pwrap_read)(struct pmic_wrapper *wrp, u32 adr, u32 *rdata); 807 static int pwrap_read16(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) in pwrap_read16() argument 823 *rdata = PWRAP_GET_WACS_RDATA(pwrap_readl(wrp, PWRAP_WACS2_RDATA)); in pwrap_read16() 830 static int pwrap_read32(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) in pwrap_read32() argument 834 *rdata = 0; in pwrap_read32() 849 *rdata += (PWRAP_GET_WACS_RDATA(pwrap_readl(wrp, in pwrap_read32() 858 static int pwrap_read(struct pmic_wrapper *wrp, u32 adr, u32 *rdata) in pwrap_read() argument 860 return wrp->slave->pwrap_read(wrp, adr, rdata); in pwrap_read() 881 int ret, msb, rdata; in pwrap_write32() local 902 pwrap_read(wrp, adr, &rdata); in pwrap_write32() [all …]
|
/Linux-v4.19/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-v4.19/drivers/regulator/ |
D | s5m8767.c | 432 struct sec_regulator_data *rdata, in s5m8767_regulator_config_ext_control() argument 437 if (rdata->id != S5M8767_BUCK9) in s5m8767_regulator_config_ext_control() 443 if (opmode->id == rdata->id) { in s5m8767_regulator_config_ext_control() 444 mode = s5m8767_opmode_reg[rdata->id][opmode->mode]; in s5m8767_regulator_config_ext_control() 451 rdata->reg_node->name, mode); in s5m8767_regulator_config_ext_control() 455 if (!rdata->ext_control_gpiod) { in s5m8767_regulator_config_ext_control() 458 rdata->reg_node->name); in s5m8767_regulator_config_ext_control() 462 config->ena_gpiod = rdata->ext_control_gpiod; in s5m8767_regulator_config_ext_control() 529 struct sec_regulator_data *rdata; in s5m8767_pmic_dt_parse_pdata() local 548 rdata = devm_kcalloc(&pdev->dev, in s5m8767_pmic_dt_parse_pdata() [all …]
|
D | s2mpa01.c | 23 struct of_regulator_match rdata[S2MPA01_REGULATOR_MAX]; member 341 struct of_regulator_match *rdata; in s2mpa01_pmic_probe() local 349 rdata = s2mpa01->rdata; in s2mpa01_pmic_probe() 351 rdata[i].name = regulators[i].name; in s2mpa01_pmic_probe() 362 of_regulator_match(&pdev->dev, reg_np, rdata, in s2mpa01_pmic_probe() 378 config.init_data = rdata[i].init_data; in s2mpa01_pmic_probe() 381 config.of_node = rdata[i].of_node; in s2mpa01_pmic_probe()
|
/Linux-v4.19/drivers/tty/serial/ |
D | ar933x_uart.c | 110 unsigned int rdata; in ar933x_uart_putc() local 112 rdata = ch & AR933X_UART_DATA_TX_RX_MASK; in ar933x_uart_putc() 113 rdata |= AR933X_UART_DATA_TX_CSR; in ar933x_uart_putc() 114 ar933x_uart_write(up, AR933X_UART_DATA_REG, rdata); in ar933x_uart_putc() 122 unsigned int rdata; in ar933x_uart_tx_empty() local 125 rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); in ar933x_uart_tx_empty() 128 return (rdata & AR933X_UART_DATA_TX_CSR) ? 0 : TIOCSER_TEMT; in ar933x_uart_tx_empty() 311 unsigned int rdata; in ar933x_uart_rx_chars() local 314 rdata = ar933x_uart_read(up, AR933X_UART_DATA_REG); in ar933x_uart_rx_chars() 315 if ((rdata & AR933X_UART_DATA_RX_CSR) == 0) in ar933x_uart_rx_chars() [all …]
|
/Linux-v4.19/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 …]
|