Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 4426) sorted by relevance

12345678910>>...178

/linux-6.6.21/drivers/staging/media/av7110/
Dav7110_ipack.c8 void av7110_ipack_reset(struct ipack *p) in av7110_ipack_reset() argument
10 p->found = 0; in av7110_ipack_reset()
11 p->cid = 0; in av7110_ipack_reset()
12 p->plength = 0; in av7110_ipack_reset()
13 p->flag1 = 0; in av7110_ipack_reset()
14 p->flag2 = 0; in av7110_ipack_reset()
15 p->hlength = 0; in av7110_ipack_reset()
16 p->mpeg = 0; in av7110_ipack_reset()
17 p->check = 0; in av7110_ipack_reset()
18 p->which = 0; in av7110_ipack_reset()
[all …]
/linux-6.6.21/drivers/watchdog/
DiTCO_wdt.c71 #define TCOBASE(p) ((p)->tco_res->start) argument
73 #define SMI_EN(p) ((p)->smi_res->start) argument
75 #define TCO_RLD(p) (TCOBASE(p) + 0x00) /* TCO Timer Reload/Curr. Value */ argument
76 #define TCOv1_TMR(p) (TCOBASE(p) + 0x01) /* TCOv1 Timer Initial Value*/ argument
77 #define TCO_DAT_IN(p) (TCOBASE(p) + 0x02) /* TCO Data In Register */ argument
78 #define TCO_DAT_OUT(p) (TCOBASE(p) + 0x03) /* TCO Data Out Register */ argument
79 #define TCO1_STS(p) (TCOBASE(p) + 0x04) /* TCO1 Status Register */ argument
80 #define TCO2_STS(p) (TCOBASE(p) + 0x06) /* TCO2 Status Register */ argument
81 #define TCO1_CNT(p) (TCOBASE(p) + 0x08) /* TCO1 Control Register */ argument
82 #define TCO2_CNT(p) (TCOBASE(p) + 0x0a) /* TCO2 Control Register */ argument
[all …]
/linux-6.6.21/drivers/ata/
Dlibata-trace.c14 libata_trace_parse_status(struct trace_seq *p, unsigned char status) in libata_trace_parse_status() argument
16 const char *ret = trace_seq_buffer_ptr(p); in libata_trace_parse_status()
18 trace_seq_printf(p, "{ "); in libata_trace_parse_status()
20 trace_seq_printf(p, "BUSY "); in libata_trace_parse_status()
22 trace_seq_printf(p, "DRDY "); in libata_trace_parse_status()
24 trace_seq_printf(p, "DF "); in libata_trace_parse_status()
26 trace_seq_printf(p, "DSC "); in libata_trace_parse_status()
28 trace_seq_printf(p, "DRQ "); in libata_trace_parse_status()
30 trace_seq_printf(p, "CORR "); in libata_trace_parse_status()
32 trace_seq_printf(p, "SENSE "); in libata_trace_parse_status()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_syncmap.c99 static inline u32 *__sync_seqno(struct i915_syncmap *p) in __sync_seqno() argument
101 GEM_BUG_ON(p->height); in __sync_seqno()
102 return (u32 *)(p + 1); in __sync_seqno()
105 static inline struct i915_syncmap **__sync_child(struct i915_syncmap *p) in __sync_child() argument
107 GEM_BUG_ON(!p->height); in __sync_child()
108 return (struct i915_syncmap **)(p + 1); in __sync_child()
112 __sync_branch_idx(const struct i915_syncmap *p, u64 id) in __sync_branch_idx() argument
114 return (id >> p->height) & MASK; in __sync_branch_idx()
118 __sync_leaf_idx(const struct i915_syncmap *p, u64 id) in __sync_leaf_idx() argument
120 GEM_BUG_ON(p->height); in __sync_leaf_idx()
[all …]
/linux-6.6.21/drivers/pnp/pnpbios/
Drsparser.c81 unsigned char *p, in pnpbios_parse_allocated_resource_data()
87 if (!p) in pnpbios_parse_allocated_resource_data()
94 while ((char *)p < (char *)end) { in pnpbios_parse_allocated_resource_data()
97 if (p[0] & LARGE_TAG) { /* large tag */ in pnpbios_parse_allocated_resource_data()
98 len = (p[2] << 8) | p[1]; in pnpbios_parse_allocated_resource_data()
99 tag = p[0]; in pnpbios_parse_allocated_resource_data()
101 len = p[0] & 0x07; in pnpbios_parse_allocated_resource_data()
102 tag = ((p[0] >> 3) & 0x0f); in pnpbios_parse_allocated_resource_data()
110 io = *(short *)&p[4]; in pnpbios_parse_allocated_resource_data()
111 size = *(short *)&p[10]; in pnpbios_parse_allocated_resource_data()
[all …]
/linux-6.6.21/arch/mips/kvm/
Dentry.c146 static void kvm_mips_build_save_scratch(u32 **p, unsigned int tmp, in kvm_mips_build_save_scratch() argument
150 UASM_i_MFC0(p, tmp, scratch_vcpu[0], scratch_vcpu[1]); in kvm_mips_build_save_scratch()
151 UASM_i_SW(p, tmp, offsetof(struct pt_regs, cp0_epc), frame); in kvm_mips_build_save_scratch()
155 UASM_i_MFC0(p, tmp, scratch_tmp[0], scratch_tmp[1]); in kvm_mips_build_save_scratch()
156 UASM_i_SW(p, tmp, offsetof(struct pt_regs, cp0_cause), frame); in kvm_mips_build_save_scratch()
160 static void kvm_mips_build_restore_scratch(u32 **p, unsigned int tmp, in kvm_mips_build_restore_scratch() argument
167 UASM_i_LW(p, tmp, offsetof(struct pt_regs, cp0_epc), frame); in kvm_mips_build_restore_scratch()
168 UASM_i_MTC0(p, tmp, scratch_vcpu[0], scratch_vcpu[1]); in kvm_mips_build_restore_scratch()
171 UASM_i_LW(p, tmp, offsetof(struct pt_regs, cp0_cause), frame); in kvm_mips_build_restore_scratch()
172 UASM_i_MTC0(p, tmp, scratch_tmp[0], scratch_tmp[1]); in kvm_mips_build_restore_scratch()
[all …]
/linux-6.6.21/sound/isa/sb/
Dsb16_csp.c78 static int snd_sb_csp_riff_load(struct snd_sb_csp * p,
80 static int snd_sb_csp_unload(struct snd_sb_csp * p);
81 static int snd_sb_csp_load_user(struct snd_sb_csp * p, const unsigned char __user *buf, int size, i…
82 static int snd_sb_csp_autoload(struct snd_sb_csp * p, snd_pcm_format_t pcm_sfmt, int play_rec_mode);
83 static int snd_sb_csp_check_version(struct snd_sb_csp * p);
85 static int snd_sb_csp_use(struct snd_sb_csp * p);
86 static int snd_sb_csp_unuse(struct snd_sb_csp * p);
87 static int snd_sb_csp_start(struct snd_sb_csp * p, int sample_width, int channels);
88 static int snd_sb_csp_stop(struct snd_sb_csp * p);
89 static int snd_sb_csp_pause(struct snd_sb_csp * p);
[all …]
/linux-6.6.21/arch/mips/mm/
Dtlbex.c204 static void uasm_bgezl_hazard(u32 **p, struct uasm_reloc **r, int instance) in uasm_bgezl_hazard() argument
208 uasm_il_bgezl(p, r, 0, label_tlbw_hazard_0 + instance); in uasm_bgezl_hazard()
215 static void uasm_bgezl_label(struct uasm_label **l, u32 **p, int instance) in uasm_bgezl_label() argument
219 uasm_build_label(l, *p, label_tlbw_hazard_0 + instance); in uasm_bgezl_label()
352 static struct work_registers build_get_work_registers(u32 **p) in build_get_work_registers() argument
358 UASM_i_MTC0(p, 1, c0_kscratch(), scratch_reg); in build_get_work_registers()
367 UASM_i_CPUID_MFC0(p, K0, SMP_CPUID_REG); in build_get_work_registers()
368 UASM_i_SRL_SAFE(p, K0, K0, SMP_CPUID_REGSHIFT); in build_get_work_registers()
371 UASM_i_SLL(p, K0, K0, ilog2(sizeof(struct tlb_reg_save))); in build_get_work_registers()
373 UASM_i_LA(p, K1, (long)&handler_reg_save); in build_get_work_registers()
[all …]
/linux-6.6.21/include/asm-generic/
Dunaligned.h25 static inline u16 get_unaligned_le16(const void *p) in get_unaligned_le16() argument
27 return le16_to_cpu(__get_unaligned_t(__le16, p)); in get_unaligned_le16()
30 static inline u32 get_unaligned_le32(const void *p) in get_unaligned_le32() argument
32 return le32_to_cpu(__get_unaligned_t(__le32, p)); in get_unaligned_le32()
35 static inline u64 get_unaligned_le64(const void *p) in get_unaligned_le64() argument
37 return le64_to_cpu(__get_unaligned_t(__le64, p)); in get_unaligned_le64()
40 static inline void put_unaligned_le16(u16 val, void *p) in put_unaligned_le16() argument
42 __put_unaligned_t(__le16, cpu_to_le16(val), p); in put_unaligned_le16()
45 static inline void put_unaligned_le32(u32 val, void *p) in put_unaligned_le32() argument
47 __put_unaligned_t(__le32, cpu_to_le32(val), p); in put_unaligned_le32()
[all …]
/linux-6.6.21/drivers/pinctrl/mediatek/
Dpinctrl-mtmips.c48 struct mtmips_priv *p = pinctrl_dev_get_drvdata(pctrldev); in mtmips_get_group_count() local
50 return p->group_count; in mtmips_get_group_count()
56 struct mtmips_priv *p = pinctrl_dev_get_drvdata(pctrldev); in mtmips_get_group_name() local
58 return (group >= p->group_count) ? NULL : p->group_names[group]; in mtmips_get_group_name()
66 struct mtmips_priv *p = pinctrl_dev_get_drvdata(pctrldev); in mtmips_get_group_pins() local
68 if (group >= p->group_count) in mtmips_get_group_pins()
71 *pins = p->groups[group].func[0].pins; in mtmips_get_group_pins()
72 *num_pins = p->groups[group].func[0].pin_count; in mtmips_get_group_pins()
87 struct mtmips_priv *p = pinctrl_dev_get_drvdata(pctrldev); in mtmips_pmx_func_count() local
89 return p->func_count; in mtmips_pmx_func_count()
[all …]
/linux-6.6.21/drivers/target/iscsi/
Discsi_target_parameters.h173 #define IS_USE_LEADING_ONLY(p) ((p)->use & USE_LEADING_ONLY) argument
174 #define IS_USE_INITIAL_ONLY(p) ((p)->use & USE_INITIAL_ONLY) argument
175 #define IS_USE_ALL(p) ((p)->use & USE_ALL) argument
177 #define SET_USE_INITIAL_ONLY(p) ((p)->use |= USE_INITIAL_ONLY) argument
188 #define IS_SENDER_INITIATOR(p) ((p)->sender & SENDER_INITIATOR) argument
189 #define IS_SENDER_TARGET(p) ((p)->sender & SENDER_TARGET) argument
190 #define IS_SENDER_BOTH(p) ((p)->sender & SENDER_BOTH) argument
198 #define IS_SCOPE_CONNECTION_ONLY(p) ((p)->scope & SCOPE_CONNECTION_ONLY) argument
199 #define IS_SCOPE_SESSION_WIDE(p) ((p)->scope & SCOPE_SESSION_WIDE) argument
209 #define IS_PHASE_SECURITY(p) ((p)->phase & PHASE_SECURITY) argument
[all …]
/linux-6.6.21/drivers/usb/cdns3/
Dcdns3-gadget.h197 #define USB_STS_CFGSTS(p) ((p) & USB_STS_CFGSTS_MASK) argument
204 #define USB_STS_OV(p) ((p) & USB_STS_OV_MASK) argument
211 #define USB_STS_USB3CONS(p) ((p) & USB_STS_USB3CONS_MASK) argument
219 #define USB_STS_DTRANS(p) ((p) & USB_STS_DTRANS_MASK) argument
229 #define USB_STS_USBSPEED(p) (((p) & USB_STS_USBSPEED_MASK) >> 4) argument
234 #define DEV_UNDEFSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == (0x0 << 4)) argument
235 #define DEV_LOWSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_LS) argument
236 #define DEV_FULLSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_FS) argument
237 #define DEV_HIGHSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_HS) argument
238 #define DEV_SUPERSPEED(p) (((p) & USB_STS_USBSPEED_MASK) == USB_STS_SS) argument
[all …]
/linux-6.6.21/include/linux/ceph/
Ddecode.h19 static inline u64 ceph_decode_64(void **p) in ceph_decode_64() argument
21 u64 v = get_unaligned_le64(*p); in ceph_decode_64()
22 *p += sizeof(u64); in ceph_decode_64()
25 static inline u32 ceph_decode_32(void **p) in ceph_decode_32() argument
27 u32 v = get_unaligned_le32(*p); in ceph_decode_32()
28 *p += sizeof(u32); in ceph_decode_32()
31 static inline u16 ceph_decode_16(void **p) in ceph_decode_16() argument
33 u16 v = get_unaligned_le16(*p); in ceph_decode_16()
34 *p += sizeof(u16); in ceph_decode_16()
37 static inline u8 ceph_decode_8(void **p) in ceph_decode_8() argument
[all …]
/linux-6.6.21/arch/arm/include/asm/
Dbitops.h36 static inline void ____atomic_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_set_bit() argument
41 p += BIT_WORD(bit); in ____atomic_set_bit()
44 *p |= mask; in ____atomic_set_bit()
48 static inline void ____atomic_clear_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_clear_bit() argument
53 p += BIT_WORD(bit); in ____atomic_clear_bit()
56 *p &= ~mask; in ____atomic_clear_bit()
60 static inline void ____atomic_change_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_change_bit() argument
65 p += BIT_WORD(bit); in ____atomic_change_bit()
68 *p ^= mask; in ____atomic_change_bit()
73 ____atomic_test_and_set_bit(unsigned int bit, volatile unsigned long *p) in ____atomic_test_and_set_bit() argument
[all …]
/linux-6.6.21/drivers/net/ethernet/apm/xgene/
Dxgene_enet_sgmac.c14 static void xgene_enet_wr_csr(struct xgene_enet_pdata *p, u32 offset, u32 val) in xgene_enet_wr_csr() argument
16 iowrite32(val, p->eth_csr_addr + offset); in xgene_enet_wr_csr()
19 static void xgene_enet_wr_clkrst_csr(struct xgene_enet_pdata *p, u32 offset, in xgene_enet_wr_clkrst_csr() argument
22 iowrite32(val, p->base_addr + offset); in xgene_enet_wr_clkrst_csr()
25 static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *p, in xgene_enet_wr_ring_if() argument
28 iowrite32(val, p->eth_ring_if_addr + offset); in xgene_enet_wr_ring_if()
31 static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *p, in xgene_enet_wr_diag_csr() argument
34 iowrite32(val, p->eth_diag_csr_addr + offset); in xgene_enet_wr_diag_csr()
45 static u32 xgene_enet_rd_csr(struct xgene_enet_pdata *p, u32 offset) in xgene_enet_rd_csr() argument
47 return ioread32(p->eth_csr_addr + offset); in xgene_enet_rd_csr()
[all …]
/linux-6.6.21/net/mac80211/
Drc80211_minstrel_ht_debugfs.c48 minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_dump() argument
57 return p; in minstrel_ht_stats_dump()
78 p += sprintf(p, "HT%c0 ", htmode); in minstrel_ht_stats_dump()
79 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
80 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
82 p += sprintf(p, "VHT%c0 ", htmode); in minstrel_ht_stats_dump()
83 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
84 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
86 p += sprintf(p, "OFDM "); in minstrel_ht_stats_dump()
87 p += sprintf(p, "1 "); in minstrel_ht_stats_dump()
[all …]
/linux-6.6.21/drivers/rtc/
Drtc-bq4802.c30 static u8 bq4802_read_io(struct bq4802 *p, int off) in bq4802_read_io() argument
32 return inb(p->ioport + off); in bq4802_read_io()
35 static void bq4802_write_io(struct bq4802 *p, int off, u8 val) in bq4802_write_io() argument
37 outb(val, p->ioport + off); in bq4802_write_io()
40 static u8 bq4802_read_mem(struct bq4802 *p, int off) in bq4802_read_mem() argument
42 return readb(p->regs + off); in bq4802_read_mem()
45 static void bq4802_write_mem(struct bq4802 *p, int off, u8 val) in bq4802_write_mem() argument
47 writeb(val, p->regs + off); in bq4802_write_mem()
52 struct bq4802 *p = dev_get_drvdata(dev); in bq4802_read_time() local
57 spin_lock_irqsave(&p->lock, flags); in bq4802_read_time()
[all …]
/linux-6.6.21/net/bridge/
Dbr_stp.c29 void br_set_state(struct net_bridge_port *p, unsigned int state) in br_set_state() argument
32 .orig_dev = p->dev, in br_set_state()
42 if (p->flags & BR_MRP_AWARE) in br_set_state()
45 p->state = state; in br_set_state()
46 if (br_opt_get(p->br, BROPT_MST_ENABLED)) { in br_set_state()
47 err = br_mst_set_state(p, 0, state, NULL); in br_set_state()
49 br_warn(p->br, "error setting MST state on port %u(%s)\n", in br_set_state()
50 p->port_no, netdev_name(p->dev)); in br_set_state()
52 err = switchdev_port_attr_set(p->dev, &attr, NULL); in br_set_state()
54 br_warn(p->br, "error setting offload STP state on port %u(%s)\n", in br_set_state()
[all …]
Dbr_if.c73 void br_port_carrier_check(struct net_bridge_port *p, bool *notified) in br_port_carrier_check() argument
75 struct net_device *dev = p->dev; in br_port_carrier_check()
76 struct net_bridge *br = p->br; in br_port_carrier_check()
78 if (!(p->flags & BR_ADMIN_COST) && in br_port_carrier_check()
80 p->path_cost = port_cost(dev); in br_port_carrier_check()
88 if (p->state == BR_STATE_DISABLED) { in br_port_carrier_check()
89 br_stp_enable_port(p); in br_port_carrier_check()
93 if (p->state != BR_STATE_DISABLED) { in br_port_carrier_check()
94 br_stp_disable_port(p); in br_port_carrier_check()
101 static void br_port_set_promisc(struct net_bridge_port *p) in br_port_set_promisc() argument
[all …]
/linux-6.6.21/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_desc.c23 static void sxgbe_init_tx_desc(struct sxgbe_tx_norm_desc *p) in sxgbe_init_tx_desc() argument
25 p->tdes23.tx_rd_des23.own_bit = 0; in sxgbe_init_tx_desc()
28 static void sxgbe_tx_desc_enable_tse(struct sxgbe_tx_norm_desc *p, u8 is_tse, in sxgbe_tx_desc_enable_tse() argument
32 p->tdes23.tx_rd_des23.tse_bit = is_tse; in sxgbe_tx_desc_enable_tse()
33 p->tdes23.tx_rd_des23.buf1_size = total_hdr_len; in sxgbe_tx_desc_enable_tse()
34 p->tdes23.tx_rd_des23.tcp_hdr_len = tcp_hdr_len / 4; in sxgbe_tx_desc_enable_tse()
35 p->tdes23.tx_rd_des23.tx_pkt_len.tcp_payload_len = tcp_payload_len; in sxgbe_tx_desc_enable_tse()
39 static void sxgbe_prepare_tx_desc(struct sxgbe_tx_norm_desc *p, u8 is_fd, in sxgbe_prepare_tx_desc() argument
42 p->tdes23.tx_rd_des23.first_desc = is_fd; in sxgbe_prepare_tx_desc()
43 p->tdes23.tx_rd_des23.buf1_size = buf1_len; in sxgbe_prepare_tx_desc()
[all …]
/linux-6.6.21/arch/parisc/lib/
Dio.c129 unsigned char *p; in insb() local
131 p = (unsigned char *)dst; in insb()
133 while (((unsigned long)p) & 0x3) { in insb()
137 *p = inb(port); in insb()
138 p++; in insb()
148 *(unsigned int *) p = w; in insb()
149 p += 4; in insb()
154 *p = inb(port); in insb()
155 p++; in insb()
170 unsigned char *p; in insw() local
[all …]
/linux-6.6.21/drivers/nvme/host/
Dtrace.c10 static const char *nvme_trace_delete_sq(struct trace_seq *p, u8 *cdw10) in nvme_trace_delete_sq() argument
12 const char *ret = trace_seq_buffer_ptr(p); in nvme_trace_delete_sq()
15 trace_seq_printf(p, "sqid=%u", sqid); in nvme_trace_delete_sq()
16 trace_seq_putc(p, 0); in nvme_trace_delete_sq()
21 static const char *nvme_trace_create_sq(struct trace_seq *p, u8 *cdw10) in nvme_trace_create_sq() argument
23 const char *ret = trace_seq_buffer_ptr(p); in nvme_trace_create_sq()
30 trace_seq_printf(p, "sqid=%u, qsize=%u, sq_flags=0x%x, cqid=%u", in nvme_trace_create_sq()
32 trace_seq_putc(p, 0); in nvme_trace_create_sq()
37 static const char *nvme_trace_delete_cq(struct trace_seq *p, u8 *cdw10) in nvme_trace_delete_cq() argument
39 const char *ret = trace_seq_buffer_ptr(p); in nvme_trace_delete_cq()
[all …]
/linux-6.6.21/drivers/net/ethernet/stmicro/stmmac/
Ddwxgmac2_descs.c12 struct dma_desc *p, void __iomem *ioaddr) in dwxgmac2_get_tx_status() argument
14 unsigned int tdes3 = le32_to_cpu(p->des3); in dwxgmac2_get_tx_status()
26 struct dma_desc *p) in dwxgmac2_get_rx_status() argument
28 unsigned int rdes3 = le32_to_cpu(p->des3); in dwxgmac2_get_rx_status()
42 static int dwxgmac2_get_tx_len(struct dma_desc *p) in dwxgmac2_get_tx_len() argument
44 return (le32_to_cpu(p->des2) & XGMAC_TDES2_B1L); in dwxgmac2_get_tx_len()
47 static int dwxgmac2_get_tx_owner(struct dma_desc *p) in dwxgmac2_get_tx_owner() argument
49 return (le32_to_cpu(p->des3) & XGMAC_TDES3_OWN) > 0; in dwxgmac2_get_tx_owner()
52 static void dwxgmac2_set_tx_owner(struct dma_desc *p) in dwxgmac2_set_tx_owner() argument
54 p->des3 |= cpu_to_le32(XGMAC_TDES3_OWN); in dwxgmac2_set_tx_owner()
[all …]
/linux-6.6.21/lib/842/
D842_compress.c109 #define get_input_data(p, o, b) \ argument
110 be##b##_to_cpu(get_unaligned((__be##b *)((p)->in + (o))))
112 #define init_hashtable_nodes(p, b) do { \ argument
114 hash_init((p)->htable##b); \
115 for (_i = 0; _i < ARRAY_SIZE((p)->node##b); _i++) { \
116 (p)->node##b[_i].index = _i; \
117 (p)->node##b[_i].data = 0; \
118 INIT_HLIST_NODE(&(p)->node##b[_i].node); \
122 #define find_index(p, b, n) ({ \ argument
124 p->index##b[n] = INDEX_NOT_FOUND; \
[all …]
/linux-6.6.21/drivers/clocksource/
Dem_sti.c53 static inline unsigned long em_sti_read(struct em_sti_priv *p, int offs) in em_sti_read() argument
55 return ioread32(p->base + offs); in em_sti_read()
58 static inline void em_sti_write(struct em_sti_priv *p, int offs, in em_sti_write() argument
61 iowrite32(value, p->base + offs); in em_sti_write()
64 static int em_sti_enable(struct em_sti_priv *p) in em_sti_enable() argument
69 ret = clk_enable(p->clk); in em_sti_enable()
71 dev_err(&p->pdev->dev, "cannot enable clock\n"); in em_sti_enable()
76 em_sti_write(p, STI_SET_H, 0x40000000); in em_sti_enable()
77 em_sti_write(p, STI_SET_L, 0x00000000); in em_sti_enable()
80 em_sti_write(p, STI_INTENCLR, 3); in em_sti_enable()
[all …]

12345678910>>...178