/drivers/staging/media/deprecated/saa7146/av7110/ |
D | av7110_ipack.c | 8 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 …]
|
/drivers/watchdog/ |
D | iTCO_wdt.c | 71 #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 …]
|
/drivers/pnp/pnpbios/ |
D | rsparser.c | 81 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 …]
|
/drivers/ata/ |
D | libata-trace.c | 14 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 …]
|
/drivers/gpu/drm/i915/ |
D | i915_syncmap.c | 99 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 …]
|
/drivers/usb/cdns3/ |
D | cdns3-gadget.h | 197 #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 …]
|
/drivers/pinctrl/ralink/ |
D | pinctrl-ralink.c | 48 struct ralink_priv *p = pinctrl_dev_get_drvdata(pctrldev); in ralink_get_group_count() local 50 return p->group_count; in ralink_get_group_count() 56 struct ralink_priv *p = pinctrl_dev_get_drvdata(pctrldev); in ralink_get_group_name() local 58 return (group >= p->group_count) ? NULL : p->group_names[group]; in ralink_get_group_name() 66 struct ralink_priv *p = pinctrl_dev_get_drvdata(pctrldev); in ralink_get_group_pins() local 68 if (group >= p->group_count) in ralink_get_group_pins() 71 *pins = p->groups[group].func[0].pins; in ralink_get_group_pins() 72 *num_pins = p->groups[group].func[0].pin_count; in ralink_get_group_pins() 87 struct ralink_priv *p = pinctrl_dev_get_drvdata(pctrldev); in ralink_pmx_func_count() local 89 return p->func_count; in ralink_pmx_func_count() [all …]
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_sgmac.c | 14 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 …]
|
/drivers/target/iscsi/ |
D | iscsi_target_parameters.h | 173 #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 …]
|
/drivers/net/ethernet/samsung/sxgbe/ |
D | sxgbe_desc.c | 23 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 …]
|
/drivers/nvme/host/ |
D | trace.c | 10 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 …]
|
/drivers/rtc/ |
D | rtc-bq4802.c | 30 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 …]
|
/drivers/gpio/ |
D | gpio-rcar.c | 70 static inline u32 gpio_rcar_read(struct gpio_rcar_priv *p, int offs) in gpio_rcar_read() argument 72 return ioread32(p->base + offs); in gpio_rcar_read() 75 static inline void gpio_rcar_write(struct gpio_rcar_priv *p, int offs, in gpio_rcar_write() argument 78 iowrite32(value, p->base + offs); in gpio_rcar_write() 81 static void gpio_rcar_modify_bit(struct gpio_rcar_priv *p, int offs, in gpio_rcar_modify_bit() argument 84 u32 tmp = gpio_rcar_read(p, offs); in gpio_rcar_modify_bit() 91 gpio_rcar_write(p, offs, tmp); in gpio_rcar_modify_bit() 97 struct gpio_rcar_priv *p = gpiochip_get_data(gc); in gpio_rcar_irq_disable() local 100 gpio_rcar_write(p, INTMSK, ~BIT(hwirq)); in gpio_rcar_irq_disable() 107 struct gpio_rcar_priv *p = gpiochip_get_data(gc); in gpio_rcar_irq_enable() local [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | dwxgmac2_descs.c | 12 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 …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | rammap.c | 79 struct nvbios_ramcfg *p) in nvbios_rammapEp_from_perf() argument 81 memset(p, 0x00, sizeof(*p)); in nvbios_rammapEp_from_perf() 83 p->rammap_00_16_20 = (nvbios_rd08(bios, data + 0x16) & 0x20) >> 5; in nvbios_rammapEp_from_perf() 84 p->rammap_00_16_40 = (nvbios_rd08(bios, data + 0x16) & 0x40) >> 6; in nvbios_rammapEp_from_perf() 85 p->rammap_00_17_02 = (nvbios_rd08(bios, data + 0x17) & 0x02) >> 1; in nvbios_rammapEp_from_perf() 92 u8 *ver, u8 *hdr, u8 *cnt, u8 *len, struct nvbios_ramcfg *p) in nvbios_rammapEp() argument 95 memset(p, 0x00, sizeof(*p)); in nvbios_rammapEp() 96 p->rammap_ver = *ver; in nvbios_rammapEp() 97 p->rammap_hdr = *hdr; in nvbios_rammapEp() 100 p->rammap_min = nvbios_rd16(bios, data + 0x00); in nvbios_rammapEp() [all …]
|
/drivers/clocksource/ |
D | em_sti.c | 53 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 …]
|
/drivers/usb/dwc2/ |
D | params.c | 15 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_bcm_params() local 17 p->host_rx_fifo_size = 774; in dwc2_set_bcm_params() 18 p->max_transfer_size = 65535; in dwc2_set_bcm_params() 19 p->max_packet_count = 511; in dwc2_set_bcm_params() 20 p->ahbcfg = 0x10; in dwc2_set_bcm_params() 25 struct dwc2_core_params *p = &hsotg->params; in dwc2_set_his_params() local 27 p->otg_caps.hnp_support = false; in dwc2_set_his_params() 28 p->otg_caps.srp_support = false; in dwc2_set_his_params() 29 p->speed = DWC2_SPEED_PARAM_HIGH; in dwc2_set_his_params() 30 p->host_rx_fifo_size = 512; in dwc2_set_his_params() [all …]
|
/drivers/net/ethernet/cavium/octeon/ |
D | octeon_mgmt.c | 157 static void octeon_mgmt_set_rx_irq(struct octeon_mgmt *p, int enable) in octeon_mgmt_set_rx_irq() argument 162 spin_lock_irqsave(&p->lock, flags); in octeon_mgmt_set_rx_irq() 163 mix_intena.u64 = cvmx_read_csr(p->mix + MIX_INTENA); in octeon_mgmt_set_rx_irq() 165 cvmx_write_csr(p->mix + MIX_INTENA, mix_intena.u64); in octeon_mgmt_set_rx_irq() 166 spin_unlock_irqrestore(&p->lock, flags); in octeon_mgmt_set_rx_irq() 169 static void octeon_mgmt_set_tx_irq(struct octeon_mgmt *p, int enable) in octeon_mgmt_set_tx_irq() argument 174 spin_lock_irqsave(&p->lock, flags); in octeon_mgmt_set_tx_irq() 175 mix_intena.u64 = cvmx_read_csr(p->mix + MIX_INTENA); in octeon_mgmt_set_tx_irq() 177 cvmx_write_csr(p->mix + MIX_INTENA, mix_intena.u64); in octeon_mgmt_set_tx_irq() 178 spin_unlock_irqrestore(&p->lock, flags); in octeon_mgmt_set_tx_irq() [all …]
|
/drivers/net/ethernet/i825xx/ |
D | sun3_82586.c | 65 #define make32(ptr16) (p->memtop + (swab16((unsigned short) (ptr16))) ) 66 #define make24(ptr32) (char *)swab32(( ((unsigned long) (ptr32)) - p->base)) 67 #define make16(ptr32) (swab16((unsigned short) ((unsigned long)(ptr32) - (unsigned long) p->memtop … 102 if(!p->scb->cmd_cuc) break; \ 105 …printk("%s: scb_cmd timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb… 106 if(!p->reseted) { p->reseted = 1; sun3_reset586(); } } } } 110 if(!p->scb->cmd_ruc) break; \ 113 …b_cmd (ruc) timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \ 114 if(!p->reseted) { p->reseted = 1; sun3_reset586(); } } } } 211 struct priv *p = &pb; in check586() local [all …]
|
/drivers/parport/ |
D | parport_ip32.c | 285 #define __pr_trace(pr, p, fmt, ...) \ argument 287 ({ const struct parport *__p = (p); \ 290 #define pr_trace(p, fmt, ...) __pr_trace(pr_debug, p, fmt , ##__VA_ARGS__) argument 291 #define pr_trace1(p, fmt, ...) __pr_trace(pr_debug1, p, fmt , ##__VA_ARGS__) argument 303 #define pr_probe(p, fmt, ...) \ argument 304 __pr_probe(KERN_INFO PPIP32 "0x%lx: " fmt, (p)->base , ##__VA_ARGS__) 318 static void parport_ip32_dump_state(struct parport *p, char *str, in parport_ip32_dump_state() argument 321 struct parport_ip32_private * const priv = p->physport->private_data; in parport_ip32_dump_state() 324 printk(KERN_DEBUG PPIP32 "%s: state (%s):\n", p->name, str); in parport_ip32_dump_state() 441 #define CHECK_EXTRA_BITS(p, b, m) \ argument [all …]
|
/drivers/nvme/target/ |
D | trace.c | 10 static const char *nvmet_trace_admin_identify(struct trace_seq *p, u8 *cdw10) in nvmet_trace_admin_identify() argument 12 const char *ret = trace_seq_buffer_ptr(p); in nvmet_trace_admin_identify() 16 trace_seq_printf(p, "cns=%u, ctrlid=%u", cns, ctrlid); in nvmet_trace_admin_identify() 17 trace_seq_putc(p, 0); in nvmet_trace_admin_identify() 22 static const char *nvmet_trace_admin_get_features(struct trace_seq *p, in nvmet_trace_admin_get_features() argument 25 const char *ret = trace_seq_buffer_ptr(p); in nvmet_trace_admin_get_features() 30 trace_seq_printf(p, "fid=0x%x, sel=0x%x, cdw11=0x%x", fid, sel, cdw11); in nvmet_trace_admin_get_features() 31 trace_seq_putc(p, 0); in nvmet_trace_admin_get_features() 36 static const char *nvmet_trace_get_lba_status(struct trace_seq *p, in nvmet_trace_get_lba_status() argument 39 const char *ret = trace_seq_buffer_ptr(p); in nvmet_trace_get_lba_status() [all …]
|
/drivers/md/ |
D | dm-cache-policy-internal.h | 15 static inline int policy_lookup(struct dm_cache_policy *p, dm_oblock_t oblock, dm_cblock_t *cblock, in policy_lookup() argument 18 return p->lookup(p, oblock, cblock, data_dir, fast_copy, background_queued); in policy_lookup() 21 static inline int policy_lookup_with_work(struct dm_cache_policy *p, in policy_lookup_with_work() argument 26 if (!p->lookup_with_work) { in policy_lookup_with_work() 28 return p->lookup(p, oblock, cblock, data_dir, fast_copy, NULL); in policy_lookup_with_work() 31 return p->lookup_with_work(p, oblock, cblock, data_dir, fast_copy, work); in policy_lookup_with_work() 34 static inline int policy_get_background_work(struct dm_cache_policy *p, in policy_get_background_work() argument 37 return p->get_background_work(p, idle, result); in policy_get_background_work() 40 static inline void policy_complete_background_work(struct dm_cache_policy *p, in policy_complete_background_work() argument 44 return p->complete_background_work(p, work, success); in policy_complete_background_work() [all …]
|
/drivers/tty/serial/8250/ |
D | 8250_dw.c | 70 static inline int dw8250_modify_msr(struct uart_port *p, int offset, int value) in dw8250_modify_msr() argument 72 struct dw8250_data *d = to_dw8250_data(p->private_data); in dw8250_modify_msr() 83 static void dw8250_force_idle(struct uart_port *p) in dw8250_force_idle() argument 85 struct uart_8250_port *up = up_to_u8250p(p); in dw8250_force_idle() 96 lsr = p->serial_in(p, UART_LSR); in dw8250_force_idle() 101 (void)p->serial_in(p, UART_RX); in dw8250_force_idle() 104 static void dw8250_check_lcr(struct uart_port *p, int value) in dw8250_check_lcr() argument 106 void __iomem *offset = p->membase + (UART_LCR << p->regshift); in dw8250_check_lcr() 111 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr() 116 dw8250_force_idle(p); in dw8250_check_lcr() [all …]
|
/drivers/mtd/maps/ |
D | intel_vr_nor.c | 65 static void vr_nor_destroy_partitions(struct vr_nor_mtd *p) in vr_nor_destroy_partitions() argument 67 mtd_device_unregister(p->info); in vr_nor_destroy_partitions() 70 static int vr_nor_init_partitions(struct vr_nor_mtd *p) in vr_nor_init_partitions() argument 74 return mtd_device_register(p->info, NULL, 0); in vr_nor_init_partitions() 77 static void vr_nor_destroy_mtd_setup(struct vr_nor_mtd *p) in vr_nor_destroy_mtd_setup() argument 79 map_destroy(p->info); in vr_nor_destroy_mtd_setup() 82 static int vr_nor_mtd_setup(struct vr_nor_mtd *p) in vr_nor_mtd_setup() argument 88 for (type = probe_types; !p->info && *type; type++) in vr_nor_mtd_setup() 89 p->info = do_map_probe(*type, &p->map); in vr_nor_mtd_setup() 90 if (!p->info) in vr_nor_mtd_setup() [all …]
|
/drivers/gpu/drm/vboxvideo/ |
D | hgsmi_base.c | 20 struct hgsmi_buffer_location *p; in hgsmi_report_flags_location() local 22 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_HGSMI, in hgsmi_report_flags_location() 24 if (!p) in hgsmi_report_flags_location() 27 p->buf_location = location; in hgsmi_report_flags_location() 28 p->buf_len = sizeof(struct hgsmi_host_flags); in hgsmi_report_flags_location() 30 hgsmi_buffer_submit(ctx, p); in hgsmi_report_flags_location() 31 hgsmi_buffer_free(ctx, p); in hgsmi_report_flags_location() 45 struct vbva_caps *p; in hgsmi_send_caps_info() local 47 p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, VBVA_INFO_CAPS); in hgsmi_send_caps_info() 48 if (!p) in hgsmi_send_caps_info() [all …]
|