| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | msix.c | 13 * @dd: valid hfi1 devdata 16 int msix_initialize(struct hfi1_devdata *dd) in msix_initialize() argument 30 total = 1 + dd->num_sdma + dd->n_krcv_queues + dd->num_netdev_contexts; in msix_initialize() 35 ret = pci_alloc_irq_vectors(dd->pcidev, total, total, PCI_IRQ_MSIX); in msix_initialize() 37 dd_dev_err(dd, "pci_alloc_irq_vectors() failed: %d\n", ret); in msix_initialize() 41 entries = kcalloc(total, sizeof(*dd->msix_info.msix_entries), in msix_initialize() 44 pci_free_irq_vectors(dd->pcidev); in msix_initialize() 48 dd->msix_info.msix_entries = entries; in msix_initialize() 49 spin_lock_init(&dd->msix_info.msix_lock); in msix_initialize() 50 bitmap_zero(dd->msix_info.in_use_msix, total); in msix_initialize() [all …]
|
| H A D | init.c | 85 static int hfi1_create_kctxt(struct hfi1_devdata *dd, in hfi1_create_kctxt() argument 94 ret = hfi1_create_ctxtdata(ppd, dd->node, &rcd); in hfi1_create_kctxt() 96 dd_dev_err(dd, "Kernel receive context allocation failed\n"); in hfi1_create_kctxt() 119 rcd->sc = sc_alloc(dd, SC_ACK, rcd->rcvhdrqentsize, dd->node); in hfi1_create_kctxt() 121 dd_dev_err(dd, "Kernel send context allocation failed\n"); in hfi1_create_kctxt() 132 int hfi1_create_kctxts(struct hfi1_devdata *dd) in hfi1_create_kctxts() argument 137 dd->rcd = kcalloc_node(dd->num_rcv_contexts, sizeof(*dd->rcd), in hfi1_create_kctxts() 138 GFP_KERNEL, dd->node); in hfi1_create_kctxts() 139 if (!dd->rcd) in hfi1_create_kctxts() 142 for (i = 0; i < dd->first_dyn_alloc_ctxt; ++i) { in hfi1_create_kctxts() [all …]
|
| H A D | pcie.c | 24 int hfi1_pcie_init(struct hfi1_devdata *dd) in hfi1_pcie_init() argument 27 struct pci_dev *pdev = dd->pcidev; in hfi1_pcie_init() 43 dd_dev_err(dd, "pci enable failed: error %d\n", -ret); in hfi1_pcie_init() 49 dd_dev_err(dd, "pci_request_regions fails: err %d\n", -ret); in hfi1_pcie_init() 62 dd_dev_err(dd, "Unable to set DMA mask: %d\n", ret); in hfi1_pcie_init() 89 * Do remaining PCIe setup, once dd is allocated, and save away 93 int hfi1_pcie_ddinit(struct hfi1_devdata *dd, struct pci_dev *pdev) in hfi1_pcie_ddinit() argument 110 dd_dev_err(dd, "chip PIO range does not match\n"); in hfi1_pcie_ddinit() 114 dd->kregbase1 = ioremap(addr, RCV_ARRAY); in hfi1_pcie_ddinit() 115 if (!dd->kregbase1) { in hfi1_pcie_ddinit() [all …]
|
| H A D | chip.c | 101 #define emulator_rev(dd) ((dd)->irev >> 8) argument 103 #define is_emulator_p(dd) ((((dd)->irev) & 0xf) == 3) argument 104 #define is_emulator_s(dd) ((((dd)->irev) & 0xf) == 4) argument 1003 static u32 chip_to_opa_lstate(struct hfi1_devdata *dd, u32 chip_lstate); 1004 static int set_physical_link_state(struct hfi1_devdata *dd, u64 state); 1005 static void read_vc_remote_phy(struct hfi1_devdata *dd, u8 *power_management, 1007 static void read_vc_remote_fabric(struct hfi1_devdata *dd, u8 *vau, u8 *z, 1009 static void read_vc_remote_link_width(struct hfi1_devdata *dd, 1011 static void read_vc_local_link_mode(struct hfi1_devdata *dd, u8 *misc_bits, 1013 static void read_remote_device_id(struct hfi1_devdata *dd, u16 *device_id, [all …]
|
| H A D | firmware.c | 212 static int load_fabric_serdes_firmware(struct hfi1_devdata *dd, 214 static void dump_fw_version(struct hfi1_devdata *dd); 229 static int __read_8051_data(struct hfi1_devdata *dd, u32 addr, u64 *result) in __read_8051_data() argument 237 write_csr(dd, DC_DC8051_CFG_RAM_ACCESS_CTRL, reg); in __read_8051_data() 239 write_csr(dd, DC_DC8051_CFG_RAM_ACCESS_CTRL, in __read_8051_data() 244 while ((read_csr(dd, DC_DC8051_CFG_RAM_ACCESS_STATUS) in __read_8051_data() 249 dd_dev_err(dd, "timeout reading 8051 data\n"); in __read_8051_data() 256 *result = read_csr(dd, DC_DC8051_CFG_RAM_ACCESS_RD_DATA); in __read_8051_data() 265 int read_8051_data(struct hfi1_devdata *dd, u32 addr, u32 len, u64 *result) in read_8051_data() argument 271 spin_lock_irqsave(&dd->dc8051_memlock, flags); in read_8051_data() [all …]
|
| H A D | aspm.c | 23 static bool aspm_hw_l1_supported(struct hfi1_devdata *dd) in aspm_hw_l1_supported() argument 25 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_l1_supported() 35 pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &dn); in aspm_hw_l1_supported() 42 return (!!dn || is_ax(dd)) && !!up; in aspm_hw_l1_supported() 46 static void aspm_hw_set_l1_ent_latency(struct hfi1_devdata *dd) in aspm_hw_set_l1_ent_latency() argument 51 pci_read_config_dword(dd->pcidev, PCIE_CFG_REG_PL3, ®32); in aspm_hw_set_l1_ent_latency() 54 pci_write_config_dword(dd->pcidev, PCIE_CFG_REG_PL3, reg32); in aspm_hw_set_l1_ent_latency() 57 static void aspm_hw_enable_l1(struct hfi1_devdata *dd) in aspm_hw_enable_l1() argument 59 struct pci_dev *parent = dd->pcidev->bus->self; in aspm_hw_enable_l1() 72 pcie_capability_clear_and_set_word(dd->pcidev, PCI_EXP_LNKCTL, in aspm_hw_enable_l1() [all …]
|
| H A D | netdev_rx.c | 24 struct hfi1_devdata *dd = rx->dd; in hfi1_netdev_setup_ctxt() local 31 ret = hfi1_create_rcvhdrq(dd, uctxt); in hfi1_netdev_setup_ctxt() 53 hfi1_rcvctrl(uctxt->dd, rcvctrl_ops, uctxt); in hfi1_netdev_setup_ctxt() 58 static int hfi1_netdev_allocate_ctxt(struct hfi1_devdata *dd, in hfi1_netdev_allocate_ctxt() argument 64 if (dd->flags & HFI1_FROZEN) in hfi1_netdev_allocate_ctxt() 67 ret = hfi1_create_ctxtdata(dd->pport, dd->node, &uctxt); in hfi1_netdev_allocate_ctxt() 69 dd_dev_err(dd, "Unable to create ctxtdata, failing open\n"); in hfi1_netdev_allocate_ctxt() 85 dd_dev_info(dd, "created netdev context %d\n", uctxt->ctxt); in hfi1_netdev_allocate_ctxt() 91 static void hfi1_netdev_deallocate_ctxt(struct hfi1_devdata *dd, in hfi1_netdev_deallocate_ctxt() argument 100 hfi1_rcvctrl(dd, HFI1_RCVCTRL_CTXT_DIS | in hfi1_netdev_deallocate_ctxt() [all …]
|
| H A D | pio.c | 21 void __cm_reset(struct hfi1_devdata *dd, u64 sendctrl) in __cm_reset() argument 23 write_csr(dd, SEND_CTRL, sendctrl | SEND_CTRL_CM_RESET_SMASK); in __cm_reset() 26 sendctrl = read_csr(dd, SEND_CTRL); in __cm_reset() 33 void pio_send_control(struct hfi1_devdata *dd, int op) in pio_send_control() argument 41 spin_lock_irqsave(&dd->sendctrl_lock, flags); in pio_send_control() 43 reg = read_csr(dd, SEND_CTRL); in pio_send_control() 50 for (i = 0; i < ARRAY_SIZE(dd->vld); i++) in pio_send_control() 51 if (!dd->vld[i].mtu) in pio_send_control() 68 __cm_reset(dd, reg); in pio_send_control() 76 dd_dev_err(dd, "%s: invalid control %d\n", __func__, op); in pio_send_control() [all …]
|
| H A D | platform.c | 14 static int validate_scratch_checksum(struct hfi1_devdata *dd) in validate_scratch_checksum() argument 19 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH); in validate_scratch_checksum() 24 dd_dev_err(dd, "%s: Config bitmap uninitialized\n", __func__); in validate_scratch_checksum() 25 dd_dev_err(dd, in validate_scratch_checksum() 38 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH + (8 * i)); in validate_scratch_checksum() 48 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH); in validate_scratch_checksum() 55 dd_dev_err(dd, "%s: Configuration bitmap corrupted\n", __func__); in validate_scratch_checksum() 59 static void save_platform_config_fields(struct hfi1_devdata *dd) in save_platform_config_fields() argument 61 struct hfi1_pportdata *ppd = dd->pport; in save_platform_config_fields() 64 temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH_1); in save_platform_config_fields() [all …]
|
| H A D | netdev.h | 40 * @dd: hfi1_devdata 53 struct hfi1_devdata *dd; member 65 int hfi1_netdev_ctxt_count(struct hfi1_devdata *dd) in hfi1_netdev_ctxt_count() argument 67 return dd->netdev_rx->num_rx_q; in hfi1_netdev_ctxt_count() 71 struct hfi1_ctxtdata *hfi1_netdev_get_ctxt(struct hfi1_devdata *dd, int ctxt) in hfi1_netdev_get_ctxt() argument 73 return dd->netdev_rx->rxq[ctxt].rcd; in hfi1_netdev_get_ctxt() 77 int hfi1_netdev_get_free_rmt_idx(struct hfi1_devdata *dd) in hfi1_netdev_get_free_rmt_idx() argument 79 return dd->netdev_rx->rmt_start; in hfi1_netdev_get_free_rmt_idx() 83 void hfi1_netdev_set_free_rmt_idx(struct hfi1_devdata *dd, int rmt_idx) in hfi1_netdev_set_free_rmt_idx() argument 85 dd->netdev_rx->rmt_start = rmt_idx; in hfi1_netdev_set_free_rmt_idx() [all …]
|
| H A D | debugfs.c | 68 struct hfi1_devdata *dd = dd_from_dev(ibd); in _opcode_stats_seq_show() local 71 for (j = 0; j < dd->first_dyn_alloc_ctxt; j++) { in _opcode_stats_seq_show() 72 rcd = hfi1_rcd_get_by_index(dd, j); in _opcode_stats_seq_show() 107 struct hfi1_devdata *dd = dd_from_dev(ibd); in _tx_opcode_stats_seq_show() local 111 per_cpu_ptr(dd->tx_opstats, j); in _tx_opcode_stats_seq_show() 125 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_start() local 129 if (*pos >= dd->first_dyn_alloc_ctxt) in _ctx_stats_seq_start() 137 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_next() local 143 if (*pos >= dd->first_dyn_alloc_ctxt) in _ctx_stats_seq_next() 159 struct hfi1_devdata *dd = dd_from_dev(ibd); in _ctx_stats_seq_show() local [all …]
|
| H A D | verbs.c | 334 struct rvt_dev_info *rdi = &ppd->dd->verbs_dev.rdi; in hfi1_kdeth_eager_rcv() 350 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_kdeth_eager_rcv() 388 struct rvt_dev_info *rdi = &ppd->dd->verbs_dev.rdi; in hfi1_kdeth_expected_rcv() 404 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_kdeth_expected_rcv() 460 struct rvt_dev_info *rdi = &ppd->dd->verbs_dev.rdi; in hfi1_handle_packet() 539 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_ib_rcv() 547 trace_input_ibhdr(rcd->dd, packet, false); in hfi1_16B_rcv() 670 sde->dd, in build_verbs_ulp_payload() 701 struct hfi1_devdata *dd = dd_from_ibdev(qp->ibqp.device); in update_tx_opstats() local 702 struct hfi1_opcode_stats_perctx *s = get_cpu_ptr(dd->tx_opstats); in update_tx_opstats() [all …]
|
| H A D | file_ops.c | 61 static int allocate_ctxt(struct hfi1_filedata *fd, struct hfi1_devdata *dd, 149 struct hfi1_devdata *dd = container_of(inode->i_cdev, in hfi1_file_open() local 153 if (!((dd->flags & HFI1_PRESENT) && dd->kregbase1)) in hfi1_file_open() 156 if (!refcount_inc_not_zero(&dd->user_refcount)) in hfi1_file_open() 169 fd->dd = dd; in hfi1_file_open() 175 if (refcount_dec_and_test(&dd->user_refcount)) in hfi1_file_open() 176 complete(&dd->user_comp); in hfi1_file_open() 279 trace_hfi1_sdma_request(fd->dd, fd->uctxt->ctxt, fd->subctxt, dim); in hfi1_write_iter() 322 struct hfi1_devdata *dd; in hfi1_file_mmap() local 338 dd = uctxt->dd; in hfi1_file_mmap() [all …]
|
| H A D | vnic_main.c | 219 struct hfi1_devdata *dd = vinfo->dd; in hfi1_netdev_start_xmit() local 255 err = dd->process_vnic_dma_send(dd, q_idx, vinfo, skb, pbc, pad_len); in hfi1_netdev_start_xmit() 287 sde = sdma_select_engine_vl(vinfo->dd, mdata->entropy, mdata->vl); in hfi1_vnic_select_queue() 311 static struct hfi1_vnic_vport_info *get_vnic_port(struct hfi1_devdata *dd, in get_vnic_port() argument 316 return hfi1_netdev_get_data(dd, vnic_id); in get_vnic_port() 319 static struct hfi1_vnic_vport_info *get_first_vnic_port(struct hfi1_devdata *dd) in get_first_vnic_port() argument 324 vinfo = hfi1_netdev_get_first_data(dd, &next_id); in get_first_vnic_port() 334 struct hfi1_devdata *dd = packet->rcd->dd; in hfi1_vnic_bypass_rcv() local 345 vinfo = get_vnic_port(dd, vesw_id); in hfi1_vnic_bypass_rcv() 354 vinfo_tmp = get_first_vnic_port(dd); in hfi1_vnic_bypass_rcv() [all …]
|
| H A D | eprom.c | 47 static void read_page(struct hfi1_devdata *dd, u32 offset, u32 *result) in read_page() argument 51 write_csr(dd, ASIC_EEP_ADDR_CMD, CMD_READ_DATA(offset)); in read_page() 53 result[i] = (u32)read_csr(dd, ASIC_EEP_DATA); in read_page() 54 write_csr(dd, ASIC_EEP_ADDR_CMD, CMD_NOP); /* close open page */ in read_page() 60 static int read_length(struct hfi1_devdata *dd, u32 start, u32 len, void *dest) in read_length() argument 88 read_page(dd, read_start, buffer); in read_length() 109 read_page(dd, start, buffer); in read_length() 119 read_page(dd, start, buffer); in read_length() 129 int eprom_init(struct hfi1_devdata *dd) in eprom_init() argument 134 if (dd->pcidev->device != PCI_DEVICE_ID_INTEL0) in eprom_init() [all …]
|
| /linux/drivers/md/ |
| H A D | dm-dust.c | 78 static int dust_remove_block(struct dust_device *dd, unsigned long long block) in dust_remove_block() argument 83 spin_lock_irqsave(&dd->dust_lock, flags); in dust_remove_block() 84 bblock = dust_rb_search(&dd->badblocklist, block); in dust_remove_block() 87 if (!dd->quiet_mode) { in dust_remove_block() 91 spin_unlock_irqrestore(&dd->dust_lock, flags); in dust_remove_block() 95 rb_erase(&bblock->node, &dd->badblocklist); in dust_remove_block() 96 dd->badblock_count--; in dust_remove_block() 97 if (!dd->quiet_mode) in dust_remove_block() 100 spin_unlock_irqrestore(&dd->dust_lock, flags); in dust_remove_block() 105 static int dust_add_block(struct dust_device *dd, unsigned long long block, in dust_add_block() argument [all …]
|
| /linux/drivers/clk/ti/ |
| H A D | dpll3xxx.c | 49 const struct dpll_data *dd; in _omap3_dpll_write_clken() local 52 dd = clk->dpll_data; in _omap3_dpll_write_clken() 54 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in _omap3_dpll_write_clken() 55 v &= ~dd->enable_mask; in _omap3_dpll_write_clken() 56 v |= clken_bits << __ffs(dd->enable_mask); in _omap3_dpll_write_clken() 57 ti_clk_ll_ops->clk_writel(v, &dd->control_reg); in _omap3_dpll_write_clken() 63 const struct dpll_data *dd; in _omap3_wait_dpll_status() local 68 dd = clk->dpll_data; in _omap3_wait_dpll_status() 71 state <<= __ffs(dd->idlest_mask); in _omap3_wait_dpll_status() 73 while (((ti_clk_ll_ops->clk_readl(&dd->idlest_reg) & dd->idlest_mask) in _omap3_wait_dpll_status() [all …]
|
| H A D | dpll.c | 150 struct dpll_data *dd = clk_hw->dpll_data; in _register_dpll() local 165 dd->clk_ref = __clk_get_hw(clk); in _register_dpll() 178 dd->clk_bypass = __clk_get_hw(clk); in _register_dpll() 278 struct dpll_data *dd = NULL; in of_ti_dpll_setup() local 283 dd = kmemdup(ddt, sizeof(*dd), GFP_KERNEL); in of_ti_dpll_setup() 286 if (!dd || !clk_hw || !init) in of_ti_dpll_setup() 289 clk_hw->dpll_data = dd; in of_ti_dpll_setup() 310 if (ti_clk_get_reg_addr(node, 0, &dd->control_reg)) in of_ti_dpll_setup() 318 if (!dd->idlest_mask) { in of_ti_dpll_setup() 319 if (ti_clk_get_reg_addr(node, 1, &dd->mult_div1_reg)) in of_ti_dpll_setup() [all …]
|
| H A D | clkt_dpll.c | 69 struct dpll_data *dd; in _dpll_test_fint() local 73 dd = clk->dpll_data; in _dpll_test_fint() 78 if (dd->flags & DPLL_J_TYPE) { in _dpll_test_fint() 94 dd->max_divider = n; in _dpll_test_fint() 99 dd->min_divider = n; in _dpll_test_fint() 207 struct dpll_data *dd; in omap2_init_dpll_parent() local 209 dd = clk->dpll_data; in omap2_init_dpll_parent() 210 if (!dd) in omap2_init_dpll_parent() 213 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap2_init_dpll_parent() 214 v &= dd->enable_mask; in omap2_init_dpll_parent() [all …]
|
| H A D | dpll44xx.c | 80 * @dd: pointer to the dpll data structure 90 static void omap4_dpll_lpmode_recalc(struct dpll_data *dd) in omap4_dpll_lpmode_recalc() argument 94 fint = clk_hw_get_rate(dd->clk_ref) / (dd->last_rounded_n + 1); in omap4_dpll_lpmode_recalc() 95 fout = fint * dd->last_rounded_m; in omap4_dpll_lpmode_recalc() 98 dd->last_rounded_lpmode = 1; in omap4_dpll_lpmode_recalc() 100 dd->last_rounded_lpmode = 0; in omap4_dpll_lpmode_recalc() 119 struct dpll_data *dd; in omap4_dpll_regm4xen_recalc() local 124 dd = clk->dpll_data; in omap4_dpll_regm4xen_recalc() 129 v = ti_clk_ll_ops->clk_readl(&dd->control_reg); in omap4_dpll_regm4xen_recalc() 150 struct dpll_data *dd; in omap4_dpll_regm4xen_determine_rate() local [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | xlated_dumper.c | 26 void kernel_syms_load(struct dump_data *dd) in kernel_syms_load() argument 38 tmp = libbpf_reallocarray(dd->sym_mapping, dd->sym_count + 1, in kernel_syms_load() 39 sizeof(*dd->sym_mapping)); in kernel_syms_load() 42 free(dd->sym_mapping); in kernel_syms_load() 43 dd->sym_mapping = NULL; in kernel_syms_load() 47 dd->sym_mapping = tmp; in kernel_syms_load() 48 sym = &dd->sym_mapping[dd->sym_count]; in kernel_syms_load() 57 dd in kernel_syms_load() 72 kernel_syms_destroy(struct dump_data * dd) kernel_syms_destroy() argument 77 kernel_syms_search(struct dump_data * dd,unsigned long key) kernel_syms_search() argument 145 print_call_pcrel(struct dump_data * dd,struct kernel_sym * sym,unsigned long address,const struct bpf_insn * insn) print_call_pcrel() argument 163 print_call_helper(struct dump_data * dd,struct kernel_sym * sym,unsigned long address) print_call_helper() argument 179 struct dump_data *dd = private_data; print_call() local 198 struct dump_data *dd = private_data; print_imm() local 218 dump_xlated_json(struct dump_data * dd,void * buf,unsigned int len,bool opcodes,bool linum) dump_xlated_json() argument 303 dump_xlated_plain(struct dump_data * dd,void * buf,unsigned int len,bool opcodes,bool linum) dump_xlated_plain() argument 367 dump_xlated_for_graph(struct dump_data * dd,void * buf_start,void * buf_end,unsigned int start_idx,bool opcodes,bool linum) dump_xlated_for_graph() argument [all...] |
| /linux/sound/soc/atmel/ |
| H A D | mchp-pdmc.c | 109 struct mchp_pdmc *dd; member 148 struct mchp_pdmc *dd = snd_soc_component_get_drvdata(component); in mchp_pdmc_sinc_order_get() local 152 item = snd_soc_enum_val_to_item(e, dd->sinc_order); in mchp_pdmc_sinc_order_get() 162 struct mchp_pdmc *dd = snd_soc_component_get_drvdata(component); in mchp_pdmc_sinc_order_put() local 172 if (atomic_read(&dd->busy_stream)) in mchp_pdmc_sinc_order_put() 175 if (val == dd->sinc_order) in mchp_pdmc_sinc_order_put() 178 dd->sinc_order = val; in mchp_pdmc_sinc_order_put() 187 struct mchp_pdmc *dd = snd_soc_component_get_drvdata(component); in mchp_pdmc_af_get() local 189 uvalue->value.integer.value[0] = !!dd->audio_filter_en; in mchp_pdmc_af_get() 198 struct mchp_pdmc *dd = snd_soc_component_get_drvdata(component); in mchp_pdmc_af_put() local [all …]
|
| H A D | atmel-pdmic.c | 108 struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); in atmel_pdmic_cpu_dai_startup() local 111 ret = clk_prepare_enable(dd->gclk); in atmel_pdmic_cpu_dai_startup() 115 ret = clk_prepare_enable(dd->pclk); in atmel_pdmic_cpu_dai_startup() 117 clk_disable_unprepare(dd->gclk); in atmel_pdmic_cpu_dai_startup() 122 regmap_write(dd->regmap, PDMIC_CR, 0); in atmel_pdmic_cpu_dai_startup() 124 dd->substream = substream; in atmel_pdmic_cpu_dai_startup() 127 regmap_write(dd->regmap, PDMIC_IER, PDMIC_IER_OVRE); in atmel_pdmic_cpu_dai_startup() 136 struct atmel_pdmic *dd = snd_soc_card_get_drvdata(rtd->card); in atmel_pdmic_cpu_dai_shutdown() local 139 regmap_write(dd->regmap, PDMIC_IDR, PDMIC_IDR_OVRE); in atmel_pdmic_cpu_dai_shutdown() 141 clk_disable_unprepare(dd->gclk); in atmel_pdmic_cpu_dai_shutdown() [all …]
|
| /linux/drivers/phy/renesas/ |
| H A D | r8a779f0-ether-serdes.c | 25 struct r8a779f0_eth_serdes_drv_data *dd; member 80 r8a779f0_eth_serdes_common_init_ram(struct r8a779f0_eth_serdes_drv_data *dd) in r8a779f0_eth_serdes_common_init_ram() argument 86 channel = &dd->channel[i]; in r8a779f0_eth_serdes_common_init_ram() 92 r8a779f0_eth_serdes_write32(dd->addr, 0x026c, 0x180, 0x03); in r8a779f0_eth_serdes_common_init_ram() 100 struct r8a779f0_eth_serdes_drv_data *dd = channel->dd; in r8a779f0_eth_serdes_common_setting() local 103 r8a779f0_eth_serdes_write32(dd->addr, 0x0244, 0x180, 0x00d7); in r8a779f0_eth_serdes_common_setting() 104 r8a779f0_eth_serdes_write32(dd->addr, 0x01cc, 0x180, 0xc200); in r8a779f0_eth_serdes_common_setting() 105 r8a779f0_eth_serdes_write32(dd->addr, 0x01c4, 0x180, 0x0042); in r8a779f0_eth_serdes_common_setting() 106 r8a779f0_eth_serdes_write32(dd->addr, 0x01c8, 0x180, 0x0000); in r8a779f0_eth_serdes_common_setting() 107 r8a779f0_eth_serdes_write32(dd->addr, 0x01dc, 0x180, 0x002f); in r8a779f0_eth_serdes_common_setting() [all …]
|
| /linux/fs/dlm/ |
| H A D | dir.c | 238 struct dlm_dir_dump *dd, *safe; in drop_dir_ctx() local 241 list_for_each_entry_safe(dd, safe, &ls->ls_dir_dump_list, list) { in drop_dir_ctx() 242 if (dd->nodeid_init == nodeid) { in drop_dir_ctx() 244 (unsigned long long)dd->seq_init); in drop_dir_ctx() 245 list_del(&dd->list); in drop_dir_ctx() 246 kfree(dd); in drop_dir_ctx() 254 struct dlm_dir_dump *iter, *dd = NULL; in lookup_dir_dump() local 259 dd = iter; in lookup_dir_dump() 265 return dd; in lookup_dir_dump() 270 struct dlm_dir_dump *dd; in init_dir_dump() local [all …]
|