/linux-4.19.296/fs/nfsd/ |
D | nfs3xdr.c | 34 encode_time3(__be32 *p, struct timespec *time) in encode_time3() argument 36 *p++ = htonl((u32) time->tv_sec); *p++ = htonl(time->tv_nsec); in encode_time3() 37 return p; in encode_time3() 41 decode_time3(__be32 *p, struct timespec *time) in decode_time3() argument 43 time->tv_sec = ntohl(*p++); in decode_time3() 44 time->tv_nsec = ntohl(*p++); in decode_time3() 45 return p; in decode_time3() 49 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument 53 size = ntohl(*p++); in decode_fh() 57 memcpy(&fhp->fh_handle.fh_base, p, size); in decode_fh() [all …]
|
D | nfsxdr.c | 29 decode_fh(__be32 *p, struct svc_fh *fhp) in decode_fh() argument 32 memcpy(&fhp->fh_handle.fh_base, p, NFS_FHSIZE); in decode_fh() 37 return p + (NFS_FHSIZE >> 2); in decode_fh() 41 __be32 *nfs2svc_decode_fh(__be32 *p, struct svc_fh *fhp) in nfs2svc_decode_fh() argument 43 return decode_fh(p, fhp); in nfs2svc_decode_fh() 47 encode_fh(__be32 *p, struct svc_fh *fhp) in encode_fh() argument 49 memcpy(p, &fhp->fh_handle.fh_base, NFS_FHSIZE); in encode_fh() 50 return p + (NFS_FHSIZE>> 2); in encode_fh() 58 decode_filename(__be32 *p, char **namp, unsigned int *lenp) in decode_filename() argument 63 if ((p = xdr_decode_string_inplace(p, namp, lenp, NFS_MAXNAMLEN)) != NULL) { in decode_filename() [all …]
|
D | nfs4xdr.c | 98 __be32 *p; \ 111 x = (char *)p; \ 112 p += XDR_QUADLEN(nbytes); \ 115 if (!(x = (p==argp->tmp || p == argp->tmpp) ? \ 116 savemem(argp, p, nbytes) : \ 117 (char *)p)) { \ 122 p += XDR_QUADLEN(nbytes); \ 125 memcpy((x), p, nbytes); \ 126 p += XDR_QUADLEN(nbytes); \ 131 if (nbytes <= (u32)((char *)argp->end - (char *)argp->p)) { \ [all …]
|
D | flexfilelayoutxdr.c | 24 __be32 *p; in nfsd4_ff_encode_layoutget() local 47 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_ff_encode_layoutget() 48 if (!p) in nfsd4_ff_encode_layoutget() 51 *p++ = cpu_to_be32(len); in nfsd4_ff_encode_layoutget() 52 p = xdr_encode_hyper(p, 0); /* stripe unit of 1 */ in nfsd4_ff_encode_layoutget() 54 *p++ = cpu_to_be32(1); /* single mirror */ in nfsd4_ff_encode_layoutget() 55 *p++ = cpu_to_be32(1); /* single data server */ in nfsd4_ff_encode_layoutget() 57 p = xdr_encode_opaque_fixed(p, &fl->deviceid, in nfsd4_ff_encode_layoutget() 60 *p++ = cpu_to_be32(1); /* efficiency */ in nfsd4_ff_encode_layoutget() 62 *p++ = cpu_to_be32(fl->stateid.si_generation); in nfsd4_ff_encode_layoutget() [all …]
|
D | blocklayoutxdr.c | 22 __be32 *p; in nfsd4_block_encode_layoutget() local 24 p = xdr_reserve_space(xdr, sizeof(__be32) + len); in nfsd4_block_encode_layoutget() 25 if (!p) in nfsd4_block_encode_layoutget() 28 *p++ = cpu_to_be32(len); in nfsd4_block_encode_layoutget() 29 *p++ = cpu_to_be32(1); /* we always return a single extent */ in nfsd4_block_encode_layoutget() 31 p = xdr_encode_opaque_fixed(p, &b->vol_id, in nfsd4_block_encode_layoutget() 33 p = xdr_encode_hyper(p, b->foff); in nfsd4_block_encode_layoutget() 34 p = xdr_encode_hyper(p, b->len); in nfsd4_block_encode_layoutget() 35 p = xdr_encode_hyper(p, b->soff); in nfsd4_block_encode_layoutget() 36 *p++ = cpu_to_be32(b->es); in nfsd4_block_encode_layoutget() [all …]
|
/linux-4.19.296/fs/lockd/ |
D | xdr4.c | 47 nlm4_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_decode_cookie() argument 51 len = ntohl(*p++); in nlm4_decode_cookie() 61 memcpy(c->data, p, len); in nlm4_decode_cookie() 62 p+=XDR_QUADLEN(len); in nlm4_decode_cookie() 71 return p; in nlm4_decode_cookie() 75 nlm4_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm4_encode_cookie() argument 77 *p++ = htonl(c->len); in nlm4_encode_cookie() 78 memcpy(p, c->data, c->len); in nlm4_encode_cookie() 79 p+=XDR_QUADLEN(c->len); in nlm4_encode_cookie() 80 return p; in nlm4_encode_cookie() [all …]
|
D | xdr.c | 47 static __be32 *nlm_decode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_decode_cookie() argument 51 len = ntohl(*p++); in nlm_decode_cookie() 61 memcpy(c->data, p, len); in nlm_decode_cookie() 62 p+=XDR_QUADLEN(len); in nlm_decode_cookie() 71 return p; in nlm_decode_cookie() 75 nlm_encode_cookie(__be32 *p, struct nlm_cookie *c) in nlm_encode_cookie() argument 77 *p++ = htonl(c->len); in nlm_encode_cookie() 78 memcpy(p, c->data, c->len); in nlm_encode_cookie() 79 p+=XDR_QUADLEN(c->len); in nlm_encode_cookie() 80 return p; in nlm_encode_cookie() [all …]
|
/linux-4.19.296/include/linux/ceph/ |
D | decode.h | 19 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-4.19.296/drivers/rtc/ |
D | rtc-bq4802.c | 29 static u8 bq4802_read_io(struct bq4802 *p, int off) in bq4802_read_io() argument 31 return inb(p->ioport + off); in bq4802_read_io() 34 static void bq4802_write_io(struct bq4802 *p, int off, u8 val) in bq4802_write_io() argument 36 outb(val, p->ioport + off); in bq4802_write_io() 39 static u8 bq4802_read_mem(struct bq4802 *p, int off) in bq4802_read_mem() argument 41 return readb(p->regs + off); in bq4802_read_mem() 44 static void bq4802_write_mem(struct bq4802 *p, int off, u8 val) in bq4802_write_mem() argument 46 writeb(val, p->regs + off); in bq4802_write_mem() 51 struct bq4802 *p = dev_get_drvdata(dev); in bq4802_read_time() local 56 spin_lock_irqsave(&p->lock, flags); in bq4802_read_time() [all …]
|
/linux-4.19.296/drivers/isdn/i4l/ |
D | isdn_ttyfax.c | 31 char *p; in isdn_getrev() local 33 if ((p = strchr(revision, ':'))) { in isdn_getrev() 34 rev = p + 2; in isdn_getrev() 35 p = strchr(rev, '$'); in isdn_getrev() 36 *--p = 0; in isdn_getrev() 320 isdn_tty_cmd_FCLASS1(char **p, modem_info *info) in isdn_tty_cmd_FCLASS1() argument 329 if (!strncmp(p[0], cmd[c.parm.aux.cmd], 2)) in isdn_tty_cmd_FCLASS1() 333 printk(KERN_DEBUG "isdn_tty_cmd_FCLASS1 (%s,%d)\n", p[0], c.parm.aux.cmd); in isdn_tty_cmd_FCLASS1() 338 p[0] += 2; in isdn_tty_cmd_FCLASS1() 339 switch (*p[0]) { in isdn_tty_cmd_FCLASS1() [all …]
|
/linux-4.19.296/lib/842/ |
D | 842_compress.c | 118 #define get_input_data(p, o, b) \ argument 119 be##b##_to_cpu(get_unaligned((__be##b *)((p)->in + (o)))) 121 #define init_hashtable_nodes(p, b) do { \ argument 123 hash_init((p)->htable##b); \ 124 for (_i = 0; _i < ARRAY_SIZE((p)->node##b); _i++) { \ 125 (p)->node##b[_i].index = _i; \ 126 (p)->node##b[_i].data = 0; \ 127 INIT_HLIST_NODE(&(p)->node##b[_i].node); \ 131 #define find_index(p, b, n) ({ \ argument 133 p->index##b[n] = INDEX_NOT_FOUND; \ [all …]
|
D | 842_decompress.c | 74 static int next_bits(struct sw842_param *p, u64 *d, u8 n); 76 static int __split_next_bits(struct sw842_param *p, u64 *d, u8 n, u8 s) in __split_next_bits() argument 86 ret = next_bits(p, &tmp, n - s); in __split_next_bits() 89 ret = next_bits(p, d, s); in __split_next_bits() 96 static int next_bits(struct sw842_param *p, u64 *d, u8 n) in next_bits() argument 98 u8 *in = p->in, b = p->bit, bits = b + n; in next_bits() 109 return __split_next_bits(p, d, n, 32); in next_bits() 110 else if (p->ilen < 8 && bits > 32 && bits <= 56) in next_bits() 111 return __split_next_bits(p, d, n, 16); in next_bits() 112 else if (p->ilen < 4 && bits > 16 && bits <= 24) in next_bits() [all …]
|
/linux-4.19.296/include/linux/ |
D | parport_pc.h | 9 #define ECONTROL(p) ((p)->base_hi + 0x2) argument 10 #define CONFIGB(p) ((p)->base_hi + 0x1) argument 11 #define CONFIGA(p) ((p)->base_hi + 0x0) argument 12 #define FIFO(p) ((p)->base_hi + 0x0) argument 13 #define EPPDATA(p) ((p)->base + 0x4) argument 14 #define EPPADDR(p) ((p)->base + 0x3) argument 15 #define CONTROL(p) ((p)->base + 0x2) argument 16 #define STATUS(p) ((p)->base + 0x1) argument 17 #define DATA(p) ((p)->base + 0x0) argument 63 static __inline__ void parport_pc_write_data(struct parport *p, unsigned char d) in parport_pc_write_data() argument [all …]
|
/linux-4.19.296/include/linux/unaligned/ |
D | be_byteshift.h | 7 static inline u16 __get_unaligned_be16(const u8 *p) in __get_unaligned_be16() argument 9 return p[0] << 8 | p[1]; in __get_unaligned_be16() 12 static inline u32 __get_unaligned_be32(const u8 *p) in __get_unaligned_be32() argument 14 return p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3]; in __get_unaligned_be32() 17 static inline u64 __get_unaligned_be64(const u8 *p) in __get_unaligned_be64() argument 19 return (u64)__get_unaligned_be32(p) << 32 | in __get_unaligned_be64() 20 __get_unaligned_be32(p + 4); in __get_unaligned_be64() 23 static inline void __put_unaligned_be16(u16 val, u8 *p) in __put_unaligned_be16() argument 25 *p++ = val >> 8; in __put_unaligned_be16() 26 *p++ = val; in __put_unaligned_be16() [all …]
|
D | le_byteshift.h | 7 static inline u16 __get_unaligned_le16(const u8 *p) in __get_unaligned_le16() argument 9 return p[0] | p[1] << 8; in __get_unaligned_le16() 12 static inline u32 __get_unaligned_le32(const u8 *p) in __get_unaligned_le32() argument 14 return p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24; in __get_unaligned_le32() 17 static inline u64 __get_unaligned_le64(const u8 *p) in __get_unaligned_le64() argument 19 return (u64)__get_unaligned_le32(p + 4) << 32 | in __get_unaligned_le64() 20 __get_unaligned_le32(p); in __get_unaligned_le64() 23 static inline void __put_unaligned_le16(u16 val, u8 *p) in __put_unaligned_le16() argument 25 *p++ = val; in __put_unaligned_le16() 26 *p++ = val >> 8; in __put_unaligned_le16() [all …]
|
/linux-4.19.296/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 99 gpio_rcar_write(p, INTMSK, ~BIT(irqd_to_hwirq(d))); in gpio_rcar_irq_disable() 105 struct gpio_rcar_priv *p = gpiochip_get_data(gc); in gpio_rcar_irq_enable() local [all …]
|
/linux-4.19.296/drivers/edac/ |
D | ghes_edac.c | 191 char *p; in ghes_edac_report_mem_error() local 243 p = pvt->msg; in ghes_edac_report_mem_error() 246 p += sprintf(p, "Unknown"); in ghes_edac_report_mem_error() 249 p += sprintf(p, "No error"); in ghes_edac_report_mem_error() 252 p += sprintf(p, "Single-bit ECC"); in ghes_edac_report_mem_error() 255 p += sprintf(p, "Multi-bit ECC"); in ghes_edac_report_mem_error() 258 p += sprintf(p, "Single-symbol ChipKill ECC"); in ghes_edac_report_mem_error() 261 p += sprintf(p, "Multi-symbol ChipKill ECC"); in ghes_edac_report_mem_error() 264 p += sprintf(p, "Master abort"); in ghes_edac_report_mem_error() 267 p += sprintf(p, "Target abort"); in ghes_edac_report_mem_error() [all …]
|
/linux-4.19.296/drivers/parport/ |
D | parport_gsc.h | 59 #define EPPDATA(p) ((p)->base + 0x4) argument 60 #define EPPADDR(p) ((p)->base + 0x3) argument 61 #define CONTROL(p) ((p)->base + 0x2) argument 62 #define STATUS(p) ((p)->base + 0x1) argument 63 #define DATA(p) ((p)->base + 0x0) argument 85 static inline void parport_gsc_write_data(struct parport *p, unsigned char d) in parport_gsc_write_data() argument 88 printk (KERN_DEBUG "parport_gsc_write_data(%p,0x%02x)\n", p, d); in parport_gsc_write_data() 90 parport_writeb(d, DATA(p)); in parport_gsc_write_data() 93 static inline unsigned char parport_gsc_read_data(struct parport *p) in parport_gsc_read_data() argument 95 unsigned char val = parport_readb (DATA (p)); in parport_gsc_read_data() [all …]
|
D | parport_ip32.c | 298 #define __pr_trace(pr, p, fmt, ...) \ argument 300 ({ const struct parport *__p = (p); \ 303 #define pr_trace(p, fmt, ...) __pr_trace(pr_debug, p, fmt , ##__VA_ARGS__) argument 304 #define pr_trace1(p, fmt, ...) __pr_trace(pr_debug1, p, fmt , ##__VA_ARGS__) argument 316 #define pr_probe(p, fmt, ...) \ argument 317 __pr_probe(KERN_INFO PPIP32 "0x%lx: " fmt, (p)->base , ##__VA_ARGS__) 331 static void parport_ip32_dump_state(struct parport *p, char *str, in parport_ip32_dump_state() argument 334 struct parport_ip32_private * const priv = p->physport->private_data; in parport_ip32_dump_state() 337 printk(KERN_DEBUG PPIP32 "%s: state (%s):\n", p->name, str); in parport_ip32_dump_state() 453 #define CHECK_EXTRA_BITS(p, b, m) \ argument [all …]
|
D | parport_gsc.c | 88 void parport_gsc_save_state(struct parport *p, struct parport_state *s) in parport_gsc_save_state() argument 90 s->u.pc.ctr = parport_readb (CONTROL (p)); in parport_gsc_save_state() 93 void parport_gsc_restore_state(struct parport *p, struct parport_state *s) in parport_gsc_restore_state() argument 95 parport_writeb (s->u.pc.ctr, CONTROL (p)); in parport_gsc_restore_state() 242 struct parport *p = &tmp; in parport_gsc_probe_port() local 261 p->base = base; in parport_gsc_probe_port() 262 p->base_hi = base_hi; in parport_gsc_probe_port() 263 p->irq = irq; in parport_gsc_probe_port() 264 p->dma = dma; in parport_gsc_probe_port() 265 p->modes = PARPORT_MODE_PCSPP | PARPORT_MODE_SAFEININT; in parport_gsc_probe_port() [all …]
|
/linux-4.19.296/include/linux/usb/ |
D | ehci_def.h | 36 #define HC_LENGTH(ehci, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument 38 #define HC_VERSION(ehci, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument 41 #define HCS_DEBUG_PORT(p) (((p)>>20)&0xf) /* bits 23:20, debug port? */ argument 42 #define HCS_INDICATOR(p) ((p)&(1 << 16)) /* true: has port indicators */ argument 43 #define HCS_N_CC(p) (((p)>>12)&0xf) /* bits 15:12, #companion HCs */ argument 44 #define HCS_N_PCC(p) (((p)>>8)&0xf) /* bits 11:8, ports per CC */ argument 45 #define HCS_PORTROUTED(p) ((p)&(1 << 7)) /* true: port routing */ argument 46 #define HCS_PPC(p) ((p)&(1 << 4)) /* true: port power control */ argument 47 #define HCS_N_PORTS(p) (((p)>>0)&0xf) /* bits 3:0, ports on HC */ argument 51 #define HCC_32FRAME_PERIODIC_LIST(p) ((p)&(1 << 19)) argument [all …]
|
/linux-4.19.296/fs/ceph/ |
D | mdsmap.c | 46 #define __decode_and_drop_type(p, end, type, bad) \ argument 48 if (*p + sizeof(type) > end) \ 50 *p += sizeof(type); \ 53 #define __decode_and_drop_set(p, end, type, bad) \ argument 57 ceph_decode_32_safe(p, end, n, bad); \ 59 ceph_decode_need(p, end, need, bad); \ 60 *p += need; \ 63 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 67 ceph_decode_32_safe(p, end, n, bad); \ 69 ceph_decode_need(p, end, need, bad); \ [all …]
|
/linux-4.19.296/drivers/irqchip/ |
D | irq-renesas-irqc.c | 55 struct irqc_priv *p; member 76 dev_dbg(&i->p->pdev->dev, "%s (%d:%d)\n", in irqc_dbg() 90 struct irqc_priv *p = irq_data_to_priv(d); in irqc_irq_set_type() local 95 irqc_dbg(&p->irq[hw_irq], "sense"); in irqc_irq_set_type() 100 tmp = ioread32(p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 103 iowrite32(tmp, p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 109 struct irqc_priv *p = irq_data_to_priv(d); in irqc_irq_set_wake() local 112 irq_set_irq_wake(p->irq[hw_irq].requested_irq, on); in irqc_irq_set_wake() 114 atomic_inc(&p->wakeup_path); in irqc_irq_set_wake() 116 atomic_dec(&p->wakeup_path); in irqc_irq_set_wake() [all …]
|
D | irq-renesas-intc-irqpin.c | 70 struct intc_irqpin_priv *p; member 110 static inline unsigned long intc_irqpin_read(struct intc_irqpin_priv *p, in intc_irqpin_read() argument 113 struct intc_irqpin_iomem *i = &p->iomem[reg]; in intc_irqpin_read() 118 static inline void intc_irqpin_write(struct intc_irqpin_priv *p, in intc_irqpin_write() argument 121 struct intc_irqpin_iomem *i = &p->iomem[reg]; in intc_irqpin_write() 126 static inline unsigned long intc_irqpin_hwirq_mask(struct intc_irqpin_priv *p, in intc_irqpin_hwirq_mask() argument 129 return BIT((p->iomem[reg].width - 1) - hw_irq); in intc_irqpin_hwirq_mask() 132 static inline void intc_irqpin_irq_write_hwirq(struct intc_irqpin_priv *p, in intc_irqpin_irq_write_hwirq() argument 135 intc_irqpin_write(p, reg, intc_irqpin_hwirq_mask(p, reg, hw_irq)); in intc_irqpin_irq_write_hwirq() 140 static void intc_irqpin_read_modify_write(struct intc_irqpin_priv *p, in intc_irqpin_read_modify_write() argument [all …]
|
/linux-4.19.296/drivers/media/v4l2-core/ |
D | v4l2-ioctl.c | 38 #define CLEAR_AFTER_FIELD(p, field) \ argument 39 memset((u8 *)(p) + offsetof(typeof(*(p)), field) + sizeof((p)->field), \ 40 0, sizeof(*(p)) - offsetof(typeof(*(p)), field) - sizeof((p)->field)) 214 const struct v4l2_capability *p = arg; in v4l_print_querycap() local 217 (int)sizeof(p->driver), p->driver, in v4l_print_querycap() 218 (int)sizeof(p->card), p->card, in v4l_print_querycap() 219 (int)sizeof(p->bus_info), p->bus_info, in v4l_print_querycap() 220 p->version, p->capabilities, p->device_caps); in v4l_print_querycap() 225 const struct v4l2_input *p = arg; in v4l_print_enuminput() local 228 p->index, (int)sizeof(p->name), p->name, p->type, p->audioset, in v4l_print_enuminput() [all …]
|