Home
last modified time | relevance | path

Searched refs:d (Results 1 – 200 of 2802) sorted by relevance

12345678910>>...15

/linux-4.4.14/lib/raid6/
Dsse2.c45 int d, z, z0; in raid6_sse21_gen_syndrome() local
56 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_sse21_gen_syndrome()
57 asm volatile("prefetchnta %0" : : "m" (dptr[z0][d])); in raid6_sse21_gen_syndrome()
58 asm volatile("movdqa %0,%%xmm2" : : "m" (dptr[z0][d])); /* P[0] */ in raid6_sse21_gen_syndrome()
59 asm volatile("prefetchnta %0" : : "m" (dptr[z0-1][d])); in raid6_sse21_gen_syndrome()
61 asm volatile("movdqa %0,%%xmm6" : : "m" (dptr[z0-1][d])); in raid6_sse21_gen_syndrome()
63 asm volatile("prefetchnta %0" : : "m" (dptr[z][d])); in raid6_sse21_gen_syndrome()
71 asm volatile("movdqa %0,%%xmm6" : : "m" (dptr[z][d])); in raid6_sse21_gen_syndrome()
81 asm volatile("movntdq %%xmm2,%0" : "=m" (p[d])); in raid6_sse21_gen_syndrome()
83 asm volatile("movntdq %%xmm4,%0" : "=m" (q[d])); in raid6_sse21_gen_syndrome()
[all …]
Davx2.c46 int d, z, z0; in raid6_avx21_gen_syndrome() local
57 for (d = 0; d < bytes; d += 32) { in raid6_avx21_gen_syndrome()
58 asm volatile("prefetchnta %0" : : "m" (dptr[z0][d])); in raid6_avx21_gen_syndrome()
59 asm volatile("vmovdqa %0,%%ymm2" : : "m" (dptr[z0][d]));/* P[0] */ in raid6_avx21_gen_syndrome()
60 asm volatile("prefetchnta %0" : : "m" (dptr[z0-1][d])); in raid6_avx21_gen_syndrome()
62 asm volatile("vmovdqa %0,%%ymm6" : : "m" (dptr[z0-1][d])); in raid6_avx21_gen_syndrome()
64 asm volatile("prefetchnta %0" : : "m" (dptr[z][d])); in raid6_avx21_gen_syndrome()
71 asm volatile("vmovdqa %0,%%ymm6" : : "m" (dptr[z][d])); in raid6_avx21_gen_syndrome()
80 asm volatile("vmovntdq %%ymm2,%0" : "=m" (p[d])); in raid6_avx21_gen_syndrome()
82 asm volatile("vmovntdq %%ymm4,%0" : "=m" (q[d])); in raid6_avx21_gen_syndrome()
[all …]
Dsse1.c49 int d, z, z0; in raid6_sse11_gen_syndrome() local
60 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_sse11_gen_syndrome()
61 asm volatile("prefetchnta %0" : : "m" (dptr[z0][d])); in raid6_sse11_gen_syndrome()
62 asm volatile("movq %0,%%mm2" : : "m" (dptr[z0][d])); /* P[0] */ in raid6_sse11_gen_syndrome()
63 asm volatile("prefetchnta %0" : : "m" (dptr[z0-1][d])); in raid6_sse11_gen_syndrome()
65 asm volatile("movq %0,%%mm6" : : "m" (dptr[z0-1][d])); in raid6_sse11_gen_syndrome()
67 asm volatile("prefetchnta %0" : : "m" (dptr[z][d])); in raid6_sse11_gen_syndrome()
75 asm volatile("movq %0,%%mm6" : : "m" (dptr[z][d])); in raid6_sse11_gen_syndrome()
85 asm volatile("movntq %%mm2,%0" : "=m" (p[d])); in raid6_sse11_gen_syndrome()
86 asm volatile("movntq %%mm4,%0" : "=m" (q[d])); in raid6_sse11_gen_syndrome()
[all …]
Dmmx.c44 int d, z, z0; in raid6_mmx1_gen_syndrome() local
55 for ( d = 0 ; d < bytes ; d += 8 ) { in raid6_mmx1_gen_syndrome()
56 asm volatile("movq %0,%%mm2" : : "m" (dptr[z0][d])); /* P[0] */ in raid6_mmx1_gen_syndrome()
59 asm volatile("movq %0,%%mm6" : : "m" (dptr[z][d])); in raid6_mmx1_gen_syndrome()
68 asm volatile("movq %%mm2,%0" : "=m" (p[d])); in raid6_mmx1_gen_syndrome()
70 asm volatile("movq %%mm4,%0" : "=m" (q[d])); in raid6_mmx1_gen_syndrome()
92 int d, z, z0; in raid6_mmx2_gen_syndrome() local
104 for ( d = 0 ; d < bytes ; d += 16 ) { in raid6_mmx2_gen_syndrome()
105 asm volatile("movq %0,%%mm2" : : "m" (dptr[z0][d])); /* P[0] */ in raid6_mmx2_gen_syndrome()
106 asm volatile("movq %0,%%mm3" : : "m" (dptr[z0][d+8])); in raid6_mmx2_gen_syndrome()
[all …]
/linux-4.4.14/drivers/block/aoe/
Daoedev.c19 static void freetgt(struct aoedev *d, struct aoetgt *t);
20 static void skbpoolfree(struct aoedev *d);
139 aoedev_put(struct aoedev *d) in aoedev_put() argument
144 d->ref--; in aoedev_put()
151 struct aoedev *d; in dummy_timer() local
153 d = (struct aoedev *)vp; in dummy_timer()
154 if (d->flags & DEVFL_TKILL) in dummy_timer()
156 d->timer.expires = jiffies + HZ; in dummy_timer()
157 add_timer(&d->timer); in dummy_timer()
161 aoe_failip(struct aoedev *d) in aoe_failip() argument
[all …]
Daoeblk.c38 struct aoedev *d = disk->private_data; in aoedisk_show_state() local
42 (d->flags & DEVFL_UP) ? "up" : "down", in aoedisk_show_state()
43 (d->flags & DEVFL_KICKME) ? ",kickme" : in aoedisk_show_state()
44 (d->nopen && !(d->flags & DEVFL_UP)) ? ",closewait" : ""); in aoedisk_show_state()
51 struct aoedev *d = disk->private_data; in aoedisk_show_mac() local
52 struct aoetgt *t = d->targets[0]; in aoedisk_show_mac()
62 struct aoedev *d = disk->private_data; in aoedisk_show_netif() local
71 t = d->targets; in aoedisk_show_netif()
72 te = t + d->ntargets; in aoedisk_show_netif()
100 struct aoedev *d = disk->private_data; in aoedisk_show_fwver() local
[all …]
Daoecmd.c25 static int count_targets(struct aoedev *d, int *untainted);
79 getframe_deferred(struct aoedev *d, u32 tag) in getframe_deferred() argument
84 head = &d->rexmitq; in getframe_deferred()
96 getframe(struct aoedev *d, u32 tag) in getframe() argument
103 head = &d->factive[n]; in getframe()
120 newtag(struct aoedev *d) in newtag() argument
125 return n |= (++d->lasttag & 0x7fff) << 16; in newtag()
129 aoehdr_atainit(struct aoedev *d, struct aoetgt *t, struct aoe_hdr *h) in aoehdr_atainit() argument
131 u32 host_tag = newtag(d); in aoehdr_atainit()
137 h->major = cpu_to_be16(d->aoemajor); in aoehdr_atainit()
[all …]
/linux-4.4.14/scripts/dtc/
Ddata.c23 void data_free(struct data d) in data_free() argument
27 m = d.markers; in data_free()
35 if (d.val) in data_free()
36 free(d.val); in data_free()
39 struct data data_grow_for(struct data d, int xlen) in data_grow_for() argument
45 return d; in data_grow_for()
47 nd = d; in data_grow_for()
51 while ((d.len + xlen) > newsize) in data_grow_for()
54 nd.val = xrealloc(d.val, newsize); in data_grow_for()
61 struct data d; in data_copy_mem() local
[all …]
/linux-4.4.14/drivers/base/regmap/
Dregmap-irq.c55 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_lock() local
57 mutex_lock(&d->lock); in regmap_irq_lock()
62 struct regmap_irq_chip_data *d = irq_data_get_irq_chip_data(data); in regmap_irq_sync_unlock() local
63 struct regmap *map = d->map; in regmap_irq_sync_unlock()
68 if (d->chip->runtime_pm) { in regmap_irq_sync_unlock()
80 for (i = 0; i < d->chip->num_regs; i++) { in regmap_irq_sync_unlock()
81 reg = d->chip->mask_base + in regmap_irq_sync_unlock()
82 (i * map->reg_stride * d->irq_reg_stride); in regmap_irq_sync_unlock()
83 if (d->chip->mask_invert) { in regmap_irq_sync_unlock()
84 ret = regmap_update_bits(d->map, reg, in regmap_irq_sync_unlock()
[all …]
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c34 static int dvb_usbv2_download_firmware(struct dvb_usb_device *d, in dvb_usbv2_download_firmware() argument
39 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_download_firmware()
41 if (!d->props->download_firmware) { in dvb_usbv2_download_firmware()
46 ret = request_firmware(&fw, name, &d->udev->dev); in dvb_usbv2_download_firmware()
48 dev_err(&d->udev->dev, in dvb_usbv2_download_firmware()
54 dev_info(&d->udev->dev, "%s: downloading firmware from file '%s'\n", in dvb_usbv2_download_firmware()
57 ret = d->props->download_firmware(d, fw); in dvb_usbv2_download_firmware()
64 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in dvb_usbv2_download_firmware()
68 static int dvb_usbv2_i2c_init(struct dvb_usb_device *d) in dvb_usbv2_i2c_init() argument
71 dev_dbg(&d->udev->dev, "%s:\n", __func__); in dvb_usbv2_i2c_init()
[all …]
Danysee.c49 static int anysee_ctrl_msg(struct dvb_usb_device *d, in anysee_ctrl_msg() argument
52 struct anysee_state *state = d_to_priv(d); in anysee_ctrl_msg()
55 mutex_lock(&d->usb_mutex); in anysee_ctrl_msg()
60 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, slen, state->buf); in anysee_ctrl_msg()
64 ret = dvb_usbv2_generic_rw_locked(d, state->buf, sizeof(state->buf), in anysee_ctrl_msg()
83 ret = usb_bulk_msg(d->udev, usb_rcvbulkpipe(d->udev, in anysee_ctrl_msg()
84 d->props->generic_bulk_ctrl_endpoint), in anysee_ctrl_msg()
87 dev_dbg(&d->udev->dev, in anysee_ctrl_msg()
91 dev_dbg(&d->udev->dev, "%s: <<< %*ph\n", __func__, in anysee_ctrl_msg()
95 dev_dbg(&d->udev->dev, in anysee_ctrl_msg()
[all …]
Ddvb_usb_urb.c24 static int dvb_usb_v2_generic_io(struct dvb_usb_device *d, in dvb_usb_v2_generic_io() argument
29 if (!wbuf || !wlen || !d->props->generic_bulk_ctrl_endpoint || in dvb_usb_v2_generic_io()
30 !d->props->generic_bulk_ctrl_endpoint_response) { in dvb_usb_v2_generic_io()
31 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, -EINVAL); in dvb_usb_v2_generic_io()
35 dev_dbg(&d->udev->dev, "%s: >>> %*ph\n", __func__, wlen, wbuf); in dvb_usb_v2_generic_io()
37 ret = usb_bulk_msg(d->udev, usb_sndbulkpipe(d->udev, in dvb_usb_v2_generic_io()
38 d->props->generic_bulk_ctrl_endpoint), wbuf, wlen, in dvb_usb_v2_generic_io()
41 dev_err(&d->udev->dev, "%s: usb_bulk_msg() failed=%d\n", in dvb_usb_v2_generic_io()
48 if (d->props->generic_bulk_ctrl_delay) in dvb_usb_v2_generic_io()
49 usleep_range(d->props->generic_bulk_ctrl_delay, in dvb_usb_v2_generic_io()
[all …]
Daf9035.c45 static int af9035_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req) in af9035_ctrl_msg() argument
51 struct state *state = d_to_priv(d); in af9035_ctrl_msg()
55 mutex_lock(&d->usb_mutex); in af9035_ctrl_msg()
60 dev_err(&d->udev->dev, "%s: too much data wlen=%d rlen=%d\n", in af9035_ctrl_msg()
84 ret = dvb_usbv2_generic_rw_locked(d, in af9035_ctrl_msg()
97 dev_err(&d->udev->dev, in af9035_ctrl_msg()
113 dev_dbg(&d->udev->dev, "%s: command=%02x failed fw error=%d\n", in af9035_ctrl_msg()
123 mutex_unlock(&d->usb_mutex); in af9035_ctrl_msg()
125 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in af9035_ctrl_msg()
130 static int af9035_wr_regs(struct dvb_usb_device *d, u32 reg, u8 *val, int len) in af9035_wr_regs() argument
[all …]
Drtl28xxu.c30 static int rtl28xxu_ctrl_msg(struct dvb_usb_device *d, struct rtl28xxu_req *req) in rtl28xxu_ctrl_msg() argument
32 struct rtl28xxu_dev *dev = d->priv; in rtl28xxu_ctrl_msg()
37 mutex_lock(&d->usb_mutex); in rtl28xxu_ctrl_msg()
40 dev_err(&d->intf->dev, "too large message %u\n", req->size); in rtl28xxu_ctrl_msg()
49 pipe = usb_sndctrlpipe(d->udev, 0); in rtl28xxu_ctrl_msg()
53 pipe = usb_rcvctrlpipe(d->udev, 0); in rtl28xxu_ctrl_msg()
56 ret = usb_control_msg(d->udev, pipe, 0, requesttype, req->value, in rtl28xxu_ctrl_msg()
58 dvb_usb_dbg_usb_control_msg(d->udev, 0, requesttype, req->value, in rtl28xxu_ctrl_msg()
67 mutex_unlock(&d->usb_mutex); in rtl28xxu_ctrl_msg()
71 mutex_unlock(&d->usb_mutex); in rtl28xxu_ctrl_msg()
[all …]
Daf9015.c31 static int af9015_ctrl_msg(struct dvb_usb_device *d, struct req_t *req) in af9015_ctrl_msg() argument
35 struct af9015_state *state = d_to_priv(d); in af9015_ctrl_msg()
39 mutex_lock(&d->usb_mutex); in af9015_ctrl_msg()
72 dev_err(&d->udev->dev, "%s: unknown command=%d\n", in af9015_ctrl_msg()
81 dev_err(&d->udev->dev, "%s: too much data; cmd=%d len=%d\n", in af9015_ctrl_msg()
102 ret = dvb_usbv2_generic_rw_locked(d, in af9015_ctrl_msg()
109 dev_err(&d->udev->dev, "%s: command failed=%d\n", in af9015_ctrl_msg()
119 mutex_unlock(&d->usb_mutex); in af9015_ctrl_msg()
124 static int af9015_write_regs(struct dvb_usb_device *d, u16 addr, u8 *val, in af9015_write_regs() argument
129 return af9015_ctrl_msg(d, &req); in af9015_write_regs()
[all …]
Daz6007.c133 static int az6007_read(struct dvb_usb_device *d, u8 req, u16 value, in az6007_read() argument
136 struct az6007_device_state *st = d->priv; in az6007_read()
142 ret = __az6007_read(d->udev, req, value, index, b, blen); in az6007_read()
180 static int az6007_write(struct dvb_usb_device *d, u8 req, u16 value, in az6007_write() argument
183 struct az6007_device_state *st = d->priv; in az6007_write()
189 ret = __az6007_write(d->udev, req, value, index, b, blen); in az6007_write()
198 struct dvb_usb_device *d = fe_to_d(fe); in az6007_streaming_ctrl() local
202 return az6007_write(d, 0xbc, onoff, 0, NULL, 0); in az6007_streaming_ctrl()
207 static int az6007_rc_query(struct dvb_usb_device *d) in az6007_rc_query() argument
209 struct az6007_device_state *st = d_to_priv(d); in az6007_rc_query()
[all …]
Dlmedm04.c176 static int lme2510_usb_talk(struct dvb_usb_device *d, in lme2510_usb_talk() argument
179 struct lme2510_state *st = d->priv; in lme2510_usb_talk()
192 ret = mutex_lock_interruptible(&d->usb_mutex); in lme2510_usb_talk()
200 ret |= lme2510_bulk_write(d->udev, buff, wlen , 0x01); in lme2510_usb_talk()
202 ret |= lme2510_bulk_read(d->udev, buff, (rlen < 64) ? in lme2510_usb_talk()
208 mutex_unlock(&d->usb_mutex); in lme2510_usb_talk()
213 static int lme2510_stream_restart(struct dvb_usb_device *d) in lme2510_stream_restart() argument
215 struct lme2510_state *st = d->priv; in lme2510_stream_restart()
221 ret = lme2510_usb_talk(d, all_pids, sizeof(all_pids), in lme2510_stream_restart()
224 ret = lme2510_usb_talk(d, stream_on, sizeof(stream_on), in lme2510_stream_restart()
[all …]
Dec168.c28 static int ec168_ctrl_msg(struct dvb_usb_device *d, struct ec168_req *req) in ec168_ctrl_msg() argument
64 dev_err(&d->udev->dev, "%s: unknown command=%02x\n", in ec168_ctrl_msg()
79 pipe = usb_sndctrlpipe(d->udev, 0); in ec168_ctrl_msg()
82 pipe = usb_rcvctrlpipe(d->udev, 0); in ec168_ctrl_msg()
87 ret = usb_control_msg(d->udev, pipe, request, requesttype, req->value, in ec168_ctrl_msg()
90 dvb_usb_dbg_usb_control_msg(d->udev, request, requesttype, req->value, in ec168_ctrl_msg()
108 dev_dbg(&d->udev->dev, "%s: failed=%d\n", __func__, ret); in ec168_ctrl_msg()
118 struct dvb_usb_device *d = i2c_get_adapdata(adap); in ec168_i2c_xfer() local
126 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in ec168_i2c_xfer()
137 ret = ec168_ctrl_msg(d, &req); in ec168_i2c_xfer()
[all …]
Ddvbsky.c53 static int dvbsky_usb_generic_rw(struct dvb_usb_device *d, in dvbsky_usb_generic_rw() argument
57 struct dvbsky_state *state = d_to_priv(d); in dvbsky_usb_generic_rw()
59 mutex_lock(&d->usb_mutex); in dvbsky_usb_generic_rw()
63 ret = dvb_usbv2_generic_rw_locked(d, state->obuf, wlen, in dvbsky_usb_generic_rw()
69 mutex_unlock(&d->usb_mutex); in dvbsky_usb_generic_rw()
73 static int dvbsky_stream_ctrl(struct dvb_usb_device *d, u8 onoff) in dvbsky_stream_ctrl() argument
75 struct dvbsky_state *state = d_to_priv(d); in dvbsky_stream_ctrl()
81 ret = dvbsky_usb_generic_rw(d, obuf_pre, 3, NULL, 0); in dvbsky_stream_ctrl()
84 ret = dvbsky_usb_generic_rw(d, obuf_post, 3, NULL, 0); in dvbsky_stream_ctrl()
92 struct dvb_usb_device *d = fe_to_d(fe); in dvbsky_streaming_ctrl() local
[all …]
Dce6230.c26 static int ce6230_ctrl_msg(struct dvb_usb_device *d, struct usb_req *req) in ce6230_ctrl_msg() argument
52 dev_err(&d->udev->dev, "%s: unknown command=%02x\n", in ce6230_ctrl_msg()
67 pipe = usb_sndctrlpipe(d->udev, 0); in ce6230_ctrl_msg()
70 pipe = usb_rcvctrlpipe(d->udev, 0); in ce6230_ctrl_msg()
75 ret = usb_control_msg(d->udev, pipe, request, requesttype, value, index, in ce6230_ctrl_msg()
78 dvb_usb_dbg_usb_control_msg(d->udev, request, requesttype, value, index, in ce6230_ctrl_msg()
82 dev_err(&d->udev->dev, "%s: usb_control_msg() failed=%d\n", in ce6230_ctrl_msg()
102 struct dvb_usb_device *d = i2c_get_adapdata(adap); in ce6230_i2c_master_xfer() local
111 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in ce6230_i2c_master_xfer()
123 ret = ce6230_ctrl_msg(d, &req); in ce6230_i2c_master_xfer()
[all …]
Dau6610.c27 static int au6610_usb_msg(struct dvb_usb_device *d, u8 operation, u8 addr, in au6610_usb_msg() argument
51 dev_err(&d->udev->dev, "%s: wlen=%d, aborting\n", in au6610_usb_msg()
57 ret = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), operation, in au6610_usb_msg()
61 dvb_usb_dbg_usb_control_msg(d->udev, operation, in au6610_usb_msg()
79 static int au6610_i2c_msg(struct dvb_usb_device *d, u8 addr, in au6610_i2c_msg() argument
91 return au6610_usb_msg(d, request, addr, wbuf, wlen, rbuf, rlen); in au6610_i2c_msg()
99 struct dvb_usb_device *d = i2c_get_adapdata(adap); in au6610_i2c_xfer() local
105 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in au6610_i2c_xfer()
111 if (au6610_i2c_msg(d, msg[i].addr, msg[i].buf, in au6610_i2c_xfer()
116 } else if (au6610_i2c_msg(d, msg[i].addr, msg[i].buf, in au6610_i2c_xfer()
[all …]
/linux-4.4.14/drivers/sh/intc/
Dcore.c74 struct intc_desc_int *d, in intc_register_irq() argument
84 radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq)); in intc_register_irq()
95 data[0] = intc_get_mask_handle(desc, d, enum_id, 0); in intc_register_irq()
96 data[1] = intc_get_prio_handle(desc, d, enum_id, 0); in intc_register_irq()
106 data[0] = data[0] ? data[0] : intc_get_mask_handle(desc, d, enum_id, 1); in intc_register_irq()
107 data[1] = data[1] ? data[1] : intc_get_prio_handle(desc, d, enum_id, 1); in intc_register_irq()
117 irq_set_chip_and_handler_name(irq, &d->chip, handle_level_irq, in intc_register_irq()
132 hp = d->prio + d->nr_prio; in intc_register_irq()
144 d->nr_prio++; in intc_register_irq()
148 data[0] = intc_get_sense_handle(desc, d, enum_id); in intc_register_irq()
[all …]
Dvirq.c35 void intc_irq_xlate_set(unsigned int irq, intc_enum id, struct intc_desc_int *d) in intc_irq_xlate_set() argument
41 intc_irq_xlate[irq].desc = d; in intc_irq_xlate_set()
53 struct intc_desc_int *d; in intc_irq_lookup() local
56 list_for_each_entry(d, &intc_list, list) { in intc_irq_lookup()
59 if (strcmp(d->chip.name, chipname) != 0) in intc_irq_lookup()
68 tagged = radix_tree_tag_get(&d->tree, enum_id, in intc_irq_lookup()
73 ptr = radix_tree_lookup(&d->tree, enum_id); in intc_irq_lookup()
118 struct intc_desc_int *d = get_intc_desc(irq); in intc_virq_handler() local
128 addr = INTC_REG(d, _INTC_ADDR_E(handle), 0); in intc_virq_handler()
138 struct intc_desc_int *d, in intc_subgroup_data() argument
[all …]
Dinternals.h23 #define INTC_REG(d, x, c) (d->reg[(x)] + ((d->smp[(x)] & 0xff) * c)) argument
24 #define SMP_NR(d, x) ((d->smp[(x)] >> 8) ? (d->smp[(x)] >> 8) : 1) argument
27 #define INTC_REG(d, x, c) (d->reg[(x)]) argument
28 #define SMP_NR(d, x) 1 argument
133 unsigned long intc_phys_to_virt(struct intc_desc_int *d, unsigned long address);
134 unsigned int intc_get_reg(struct intc_desc_int *d, unsigned long address);
146 struct intc_desc_int *d, intc_enum id);
152 struct intc_desc_int *d, intc_enum id) { } in intc_set_dist_handle() argument
170 struct intc_desc_int *d,
173 struct intc_desc_int *d,
[all …]
Dhandle.c39 struct intc_desc_int *d, in _intc_mask_data() argument
75 intc_get_reg(d, reg_e), in _intc_mask_data()
76 intc_get_reg(d, reg_d), in _intc_mask_data()
89 intc_get_mask_handle(struct intc_desc *desc, struct intc_desc_int *d, in intc_get_mask_handle() argument
96 ret = _intc_mask_data(desc, d, enum_id, &i, &j); in intc_get_mask_handle()
101 return intc_get_mask_handle(desc, d, intc_grp_id(desc, enum_id), 0); in intc_get_mask_handle()
107 struct intc_desc_int *d, in _intc_prio_data() argument
145 intc_get_reg(d, reg_e), in _intc_prio_data()
146 intc_get_reg(d, reg_d), in _intc_prio_data()
158 intc_get_prio_handle(struct intc_desc *desc, struct intc_desc_int *d, in intc_get_prio_handle() argument
[all …]
Dchip.c19 struct intc_desc_int *d = get_intc_desc(irq); in _intc_enable() local
23 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_E(handle)); cpu++) { in _intc_enable()
28 addr = INTC_REG(d, _INTC_ADDR_E(handle), cpu); in _intc_enable()
44 struct intc_desc_int *d = get_intc_desc(irq); in intc_disable() local
51 for (cpu = 0; cpu < SMP_NR(d, _INTC_ADDR_D(handle)); cpu++) { in intc_disable()
56 addr = INTC_REG(d, _INTC_ADDR_D(handle), cpu); in intc_disable()
84 struct intc_desc_int *d = get_intc_desc(irq); in intc_mask_ack() local
94 addr = (void __iomem *)INTC_REG(d, _INTC_ADDR_D(handle), 0); in intc_mask_ack()
131 struct intc_desc_int *d = get_intc_desc(irq); in intc_set_priority() local
138 ihp = intc_find_irq(d->prio, d->nr_prio, irq); in intc_set_priority()
[all …]
/linux-4.4.14/drivers/mtd/
Dmtdswap.c175 #define TREE_ROOT(d, name) (&d->trees[MTDSWAP_ ## name].root) argument
176 #define TREE_EMPTY(d, name) (TREE_ROOT(d, name)->rb_node == NULL) argument
177 #define TREE_NONEMPTY(d, name) (!TREE_EMPTY(d, name)) argument
178 #define TREE_COUNT(d, name) (d->trees[MTDSWAP_ ## name].count) argument
197 static int mtdswap_gc(struct mtdswap_dev *d, unsigned int background);
199 static loff_t mtdswap_eb_offset(struct mtdswap_dev *d, struct swap_eb *eb) in mtdswap_eb_offset() argument
201 return (loff_t)(eb - d->eb_data) * d->mtd->erasesize; in mtdswap_eb_offset()
204 static void mtdswap_eb_detach(struct mtdswap_dev *d, struct swap_eb *eb) in mtdswap_eb_detach() argument
211 oldidx = tp - &d->trees[0]; in mtdswap_eb_detach()
213 d->trees[oldidx].count--; in mtdswap_eb_detach()
[all …]
/linux-4.4.14/net/core/
Dgen_stats.c28 gnet_stats_copy(struct gnet_dump *d, int type, void *buf, int size) in gnet_stats_copy() argument
30 if (nla_put(d->skb, type, size, buf)) in gnet_stats_copy()
35 kfree(d->xstats); in gnet_stats_copy()
36 d->xstats = NULL; in gnet_stats_copy()
37 d->xstats_len = 0; in gnet_stats_copy()
38 spin_unlock_bh(d->lock); in gnet_stats_copy()
62 int xstats_type, spinlock_t *lock, struct gnet_dump *d) in gnet_stats_start_copy_compat() argument
65 memset(d, 0, sizeof(*d)); in gnet_stats_start_copy_compat()
68 d->lock = lock; in gnet_stats_start_copy_compat()
70 d->tail = (struct nlattr *)skb_tail_pointer(skb); in gnet_stats_start_copy_compat()
[all …]
Dutils.c125 u8 *d; in in4_pton() local
134 d = dbuf; in in4_pton()
145 *d++ = w & 0xff; in in4_pton()
191 u8 *d, *dc = NULL; in in6_pton() local
201 d = dbuf; in in6_pton()
214 *d++ = (w >> 8) & 0xff; in in6_pton()
215 *d++ = w & 0xff; in in6_pton()
229 dc = d; in in6_pton()
251 ret = in4_pton(tok ? tok : s, srclen + (int)(s - tok), d, delim, &s); in in6_pton()
253 d += 4; in in6_pton()
[all …]
/linux-4.4.14/drivers/media/rc/
Dlirc_dev.c51 struct lirc_driver d; member
78 ir->d.minor = NOPLUG; in lirc_irctl_init()
83 dev_dbg(ir->d.dev, LOGHEAD "cleaning up\n", ir->d.name, ir->d.minor); in lirc_irctl_cleanup()
85 device_destroy(lirc_class, MKDEV(MAJOR(lirc_base_dev), ir->d.minor)); in lirc_irctl_cleanup()
87 if (ir->buf != ir->d.rbuf) { in lirc_irctl_cleanup()
100 if (ir->d.add_to_buf) { in lirc_add_to_buf()
109 res = ir->d.add_to_buf(ir->d.data, ir->buf); in lirc_add_to_buf()
130 dev_dbg(ir->d.dev, LOGHEAD "poll thread started\n", in lirc_thread()
131 ir->d.name, ir->d.minor); in lirc_thread()
149 dev_dbg(ir->d.dev, LOGHEAD "poll thread ended\n", in lirc_thread()
[all …]
/linux-4.4.14/drivers/media/usb/dvb-usb/
Ddvb-usb-remote.c47 struct dvb_usb_device *d = input_get_drvdata(dev); in legacy_dvb_usb_getkeycode() local
48 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_getkeycode()
49 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_getkeycode()
70 struct dvb_usb_device *d = input_get_drvdata(dev); in legacy_dvb_usb_setkeycode() local
71 struct rc_map_table *keymap = d->props.rc.legacy.rc_map_table; in legacy_dvb_usb_setkeycode()
72 unsigned int keymap_size = d->props.rc.legacy.rc_map_size; in legacy_dvb_usb_setkeycode()
110 struct dvb_usb_device *d = in legacy_dvb_usb_read_remote_control() local
122 if (d->props.rc.legacy.rc_query(d,&event,&state)) { in legacy_dvb_usb_read_remote_control()
133 d->last_event = event; in legacy_dvb_usb_read_remote_control()
136 input_event(d->input_dev, EV_KEY, event, 1); in legacy_dvb_usb_read_remote_control()
[all …]
Ddvb-usb-init.c29 static int dvb_usb_adapter_init(struct dvb_usb_device *d, short *adapter_nrs) in dvb_usb_adapter_init() argument
34 for (n = 0; n < d->props.num_adapters; n++) { in dvb_usb_adapter_init()
35 adap = &d->adapter[n]; in dvb_usb_adapter_init()
36 adap->dev = d; in dvb_usb_adapter_init()
39 memcpy(&adap->props, &d->props.adapter[n], sizeof(struct dvb_usb_adapter_properties)); in dvb_usb_adapter_init()
44 if (d->udev->speed == USB_SPEED_FULL && !(props->caps & DVB_USB_ADAP_HAS_PID_FILTER)) { in dvb_usb_adapter_init()
49 if ((d->udev->speed == USB_SPEED_FULL && props->caps & DVB_USB_ADAP_HAS_PID_FILTER) || in dvb_usb_adapter_init()
95 d->num_adapters_initialized++; in dvb_usb_adapter_init()
96 d->state |= DVB_USB_STATE_DVB; in dvb_usb_adapter_init()
103 if (d->props.generic_bulk_ctrl_endpoint != 0) { in dvb_usb_adapter_init()
[all …]
Ddvb-usb-i2c.c10 int dvb_usb_i2c_init(struct dvb_usb_device *d) in dvb_usb_i2c_init() argument
14 if (!(d->props.caps & DVB_USB_IS_AN_I2C_ADAPTER)) in dvb_usb_i2c_init()
17 if (d->props.i2c_algo == NULL) { in dvb_usb_i2c_init()
22 strlcpy(d->i2c_adap.name, d->desc->name, sizeof(d->i2c_adap.name)); in dvb_usb_i2c_init()
23 d->i2c_adap.algo = d->props.i2c_algo; in dvb_usb_i2c_init()
24 d->i2c_adap.algo_data = NULL; in dvb_usb_i2c_init()
25 d->i2c_adap.dev.parent = &d->udev->dev; in dvb_usb_i2c_init()
27 i2c_set_adapdata(&d->i2c_adap, d); in dvb_usb_i2c_init()
29 if ((ret = i2c_add_adapter(&d->i2c_adap)) < 0) in dvb_usb_i2c_init()
32 d->state |= DVB_USB_STATE_I2C; in dvb_usb_i2c_init()
[all …]
Dgp8psk.c27 static int gp8psk_get_fw_version(struct dvb_usb_device *d, u8 *fw_vers) in gp8psk_get_fw_version() argument
29 return (gp8psk_usb_in_op(d, GET_FW_VERS, 0, 0, fw_vers, 6)); in gp8psk_get_fw_version()
32 static int gp8psk_get_fpga_version(struct dvb_usb_device *d, u8 *fpga_vers) in gp8psk_get_fpga_version() argument
34 return (gp8psk_usb_in_op(d, GET_FPGA_VERS, 0, 0, fpga_vers, 1)); in gp8psk_get_fpga_version()
37 static void gp8psk_info(struct dvb_usb_device *d) in gp8psk_info() argument
41 if (!gp8psk_get_fw_version(d, fw_vers)) in gp8psk_info()
48 if (!gp8psk_get_fpga_version(d, &fpga_vers)) in gp8psk_info()
54 int gp8psk_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, u16 index, u8 *b, int blen) in gp8psk_usb_in_op() argument
58 if ((ret = mutex_lock_interruptible(&d->usb_mutex))) in gp8psk_usb_in_op()
62 ret = usb_control_msg(d->udev, in gp8psk_usb_in_op()
[all …]
Ddw2102.c173 struct dvb_usb_device *d = i2c_get_adapdata(adap); in dw2102_i2c_transfer() local
178 if (!d) in dw2102_i2c_transfer()
180 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in dw2102_i2c_transfer()
188 dw210x_op_rw(d->udev, 0xb5, value + i, 0, in dw2102_i2c_transfer()
200 dw210x_op_rw(d->udev, 0xb2, 0, 0, in dw2102_i2c_transfer()
213 dw210x_op_rw(d->udev, 0xb2, 0, 0, in dw2102_i2c_transfer()
217 dw210x_op_rw(d->udev, 0xb5, 0, 0, in dw2102_i2c_transfer()
223 dw210x_op_rw(d->udev, 0xb8, 0, 0, in dw2102_i2c_transfer()
231 dw210x_op_rw(d->udev, 0xb2, 0, 0, in dw2102_i2c_transfer()
239 mutex_unlock(&d->i2c_mutex); in dw2102_i2c_transfer()
[all …]
Daf9005-fe.c31 struct dvb_usb_device *d; member
62 static int af9005_write_word_agc(struct dvb_usb_device *d, u16 reghi, in af9005_write_word_agc() argument
67 if ((ret = af9005_write_ofdm_register(d, reglo, (u8) (value & 0xff)))) in af9005_write_word_agc()
69 return af9005_write_register_bits(d, reghi, pos, len, in af9005_write_word_agc()
73 static int af9005_read_word_agc(struct dvb_usb_device *d, u16 reghi, in af9005_read_word_agc() argument
79 if ((ret = af9005_read_ofdm_register(d, reglo, &temp0))) in af9005_read_word_agc()
81 if ((ret = af9005_read_ofdm_register(d, reghi, &temp1))) in af9005_read_word_agc()
112 ret = af9005_read_register_bits(state->d, xd_p_fec_vtb_rsd_mon_en, in af9005_is_fecmon_available()
119 af9005_read_register_bits(state->d, in af9005_is_fecmon_available()
149 af9005_read_register_bits(state->d, xd_r_fec_rsd_ber_rdy, in af9005_get_post_vit_err_cw_count()
[all …]
Ddib0700_core.c27 int dib0700_get_version(struct dvb_usb_device *d, u32 *hwversion, in dib0700_get_version() argument
30 struct dib0700_state *st = d->priv; in dib0700_get_version()
33 if (mutex_lock_interruptible(&d->usb_mutex) < 0) { in dib0700_get_version()
38 ret = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev, 0), in dib0700_get_version()
54 mutex_unlock(&d->usb_mutex); in dib0700_get_version()
59 static int dib0700_ctrl_wr(struct dvb_usb_device *d, u8 *tx, u8 txlen) in dib0700_ctrl_wr() argument
66 status = usb_control_msg(d->udev, usb_sndctrlpipe(d->udev,0), in dib0700_ctrl_wr()
77 int dib0700_ctrl_rd(struct dvb_usb_device *d, u8 *tx, u8 txlen, u8 *rx, u8 rxlen) in dib0700_ctrl_rd() argument
101 status = usb_control_msg(d->udev, usb_rcvctrlpipe(d->udev,0), tx[0], in dib0700_ctrl_rd()
114 int dib0700_set_gpio(struct dvb_usb_device *d, enum dib07x0_gpios gpio, u8 gpio_dir, u8 gpio_val) in dib0700_set_gpio() argument
[all …]
Dfriio.c33 static int gl861_i2c_ctrlmsg_data(struct dvb_usb_device *d, u8 addr, in gl861_i2c_ctrlmsg_data() argument
48 return usb_control_msg(d->udev, usb_sndctrlpipe(d->udev, 0), in gl861_i2c_ctrlmsg_data()
62 static int gl861_i2c_msg(struct dvb_usb_device *d, u8 addr, in gl861_i2c_msg() argument
74 return gl861_i2c_ctrlmsg_data(d, addr, wbuf, wlen, rbuf, rlen); in gl861_i2c_msg()
79 pipe = usb_sndctrlpipe(d->udev, 0); in gl861_i2c_msg()
83 pipe = usb_rcvctrlpipe(d->udev, 0); in gl861_i2c_msg()
104 return usb_control_msg(d->udev, pipe, req, type, in gl861_i2c_msg()
112 struct dvb_usb_device *d = i2c_get_adapdata(adap); in gl861_i2c_xfer() local
119 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in gl861_i2c_xfer()
125 if (gl861_i2c_msg(d, msg[i].addr, in gl861_i2c_xfer()
[all …]
Dvp702x.c33 static int vp702x_usb_in_op_unlocked(struct dvb_usb_device *d, u8 req, in vp702x_usb_in_op_unlocked() argument
38 ret = usb_control_msg(d->udev, in vp702x_usb_in_op_unlocked()
39 usb_rcvctrlpipe(d->udev, 0), in vp702x_usb_in_op_unlocked()
58 int vp702x_usb_in_op(struct dvb_usb_device *d, u8 req, u16 value, in vp702x_usb_in_op() argument
63 mutex_lock(&d->usb_mutex); in vp702x_usb_in_op()
64 ret = vp702x_usb_in_op_unlocked(d, req, value, index, b, blen); in vp702x_usb_in_op()
65 mutex_unlock(&d->usb_mutex); in vp702x_usb_in_op()
70 static int vp702x_usb_out_op_unlocked(struct dvb_usb_device *d, u8 req, in vp702x_usb_out_op_unlocked() argument
77 if ((ret = usb_control_msg(d->udev, in vp702x_usb_out_op_unlocked()
78 usb_sndctrlpipe(d->udev,0), in vp702x_usb_out_op_unlocked()
[all …]
Dvp7045-fe.c26 struct dvb_usb_device *d; member
33 u8 s0 = vp7045_read_reg(state->d,0x00), in vp7045_fe_read_status()
34 s1 = vp7045_read_reg(state->d,0x01), in vp7045_fe_read_status()
35 s3 = vp7045_read_reg(state->d,0x03); in vp7045_fe_read_status()
59 *ber = (vp7045_read_reg(state->d, 0x0D) << 16) | in vp7045_fe_read_ber()
60 (vp7045_read_reg(state->d, 0x0E) << 8) | in vp7045_fe_read_ber()
61 vp7045_read_reg(state->d, 0x0F); in vp7045_fe_read_ber()
68 *unc = (vp7045_read_reg(state->d, 0x10) << 8) | in vp7045_fe_read_unc_blocks()
69 vp7045_read_reg(state->d, 0x11); in vp7045_fe_read_unc_blocks()
76 u16 signal = (vp7045_read_reg(state->d, 0x14) << 8) | in vp7045_fe_read_signal_strength()
[all …]
Daf9005.c45 static int (*rc_decode) (struct dvb_usb_device *d, u8 *data, int len,
57 static int af9005_generic_read_write(struct dvb_usb_device *d, u16 reg, in af9005_generic_read_write() argument
60 struct af9005_device_state *st = d->priv; in af9005_generic_read_write()
105 ret = dvb_usb_generic_rw(d, obuf, 16, ibuf, 17, 0); in af9005_generic_read_write()
147 int af9005_read_ofdm_register(struct dvb_usb_device *d, u16 reg, u8 * value) in af9005_read_ofdm_register() argument
151 ret = af9005_generic_read_write(d, reg, in af9005_read_ofdm_register()
161 int af9005_read_ofdm_registers(struct dvb_usb_device *d, u16 reg, in af9005_read_ofdm_registers() argument
166 ret = af9005_generic_read_write(d, reg, in af9005_read_ofdm_registers()
176 int af9005_write_ofdm_register(struct dvb_usb_device *d, u16 reg, u8 value) in af9005_write_ofdm_register() argument
181 ret = af9005_generic_read_write(d, reg, in af9005_write_ofdm_register()
[all …]
Ddvb-usb-urb.c11 int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, in dvb_usb_generic_rw() argument
16 if (!d || wbuf == NULL || wlen == 0) in dvb_usb_generic_rw()
19 if (d->props.generic_bulk_ctrl_endpoint == 0) { in dvb_usb_generic_rw()
24 if ((ret = mutex_lock_interruptible(&d->usb_mutex))) in dvb_usb_generic_rw()
30 ret = usb_bulk_msg(d->udev,usb_sndbulkpipe(d->udev, in dvb_usb_generic_rw()
31 d->props.generic_bulk_ctrl_endpoint), wbuf,wlen,&actlen, in dvb_usb_generic_rw()
44 ret = usb_bulk_msg(d->udev,usb_rcvbulkpipe(d->udev, in dvb_usb_generic_rw()
45 d->props.generic_bulk_ctrl_endpoint_response ? in dvb_usb_generic_rw()
46 d->props.generic_bulk_ctrl_endpoint_response : in dvb_usb_generic_rw()
47 d->props.generic_bulk_ctrl_endpoint),rbuf,rlen,&actlen, in dvb_usb_generic_rw()
[all …]
Dcxusb.c61 static int cxusb_ctrl_msg(struct dvb_usb_device *d, in cxusb_ctrl_msg() argument
78 return dvb_usb_generic_write(d, sndbuf, 1+wlen); in cxusb_ctrl_msg()
80 return dvb_usb_generic_rw(d, sndbuf, 1+wlen, rbuf, rlen, 0); in cxusb_ctrl_msg()
84 static void cxusb_gpio_tuner(struct dvb_usb_device *d, int onoff) in cxusb_gpio_tuner() argument
86 struct cxusb_state *st = d->priv; in cxusb_gpio_tuner()
94 cxusb_ctrl_msg(d, CMD_GPIO_WRITE, o, 2, &i, 1); in cxusb_gpio_tuner()
102 static int cxusb_bluebird_gpio_rw(struct dvb_usb_device *d, u8 changemask, in cxusb_bluebird_gpio_rw() argument
111 rc = cxusb_ctrl_msg(d, CMD_BLUEBIRD_GPIO_RW, o, 2, &gpio_state, 1); in cxusb_bluebird_gpio_rw()
118 static void cxusb_bluebird_gpio_pulse(struct dvb_usb_device *d, u8 pin, int low) in cxusb_bluebird_gpio_pulse() argument
120 cxusb_bluebird_gpio_rw(d, pin, low ? 0 : pin); in cxusb_bluebird_gpio_pulse()
[all …]
Dtechnisat-usb2.c162 struct dvb_usb_device *d = i2c_get_adapdata(adap); in technisat_usb2_i2c_xfer() local
166 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in technisat_usb2_i2c_xfer()
171 ret = technisat_usb2_i2c_access(d->udev, msg[i+1].addr, in technisat_usb2_i2c_xfer()
178 ret = technisat_usb2_i2c_access(d->udev, msg[i].addr, in technisat_usb2_i2c_xfer()
189 mutex_unlock(&d->i2c_mutex); in technisat_usb2_i2c_xfer()
223 static int technisat_usb2_set_led(struct dvb_usb_device *d, int red, enum technisat_usb2_led_state … in technisat_usb2_set_led() argument
259 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in technisat_usb2_set_led()
262 ret = usb_control_msg(d->udev, usb_sndctrlpipe(d->udev, 0), in technisat_usb2_set_led()
268 mutex_unlock(&d->i2c_mutex); in technisat_usb2_set_led()
272 static int technisat_usb2_set_led_timer(struct dvb_usb_device *d, u8 red, u8 green) in technisat_usb2_set_led_timer() argument
[all …]
Dvp7045.c28 int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int mse… in vp7045_usb_op() argument
31 u8 *buf = d->priv; in vp7045_usb_op()
41 ret = mutex_lock_interruptible(&d->usb_mutex); in vp7045_usb_op()
52 if (usb_control_msg(d->udev, in vp7045_usb_op()
53 usb_sndctrlpipe(d->udev,0), in vp7045_usb_op()
63 if (usb_control_msg(d->udev, in vp7045_usb_op()
64 usb_rcvctrlpipe(d->udev,0), in vp7045_usb_op()
79 mutex_unlock(&d->usb_mutex); in vp7045_usb_op()
84 u8 vp7045_read_reg(struct dvb_usb_device *d, u8 reg) in vp7045_read_reg() argument
89 vp7045_usb_op(d,TUNER_REG_READ,obuf,2,&v,1,30); in vp7045_read_reg()
[all …]
Ddigitv.c28 static int digitv_ctrl_msg(struct dvb_usb_device *d, in digitv_ctrl_msg() argument
41 dvb_usb_generic_write(d,sndbuf,7); in digitv_ctrl_msg()
43 dvb_usb_generic_rw(d,sndbuf,7,rcvbuf,7,10); in digitv_ctrl_msg()
52 struct dvb_usb_device *d = i2c_get_adapdata(adap); in digitv_i2c_xfer() local
55 if (mutex_lock_interruptible(&d->i2c_mutex) < 0) in digitv_i2c_xfer()
64 if (digitv_ctrl_msg(d, USB_READ_COFDM, msg[i].buf[0], NULL, 0, in digitv_i2c_xfer()
69 if (digitv_ctrl_msg(d,USB_WRITE_COFDM, msg[i].buf[0], in digitv_i2c_xfer()
74 mutex_unlock(&d->i2c_mutex); in digitv_i2c_xfer()
227 static int digitv_rc_query(struct dvb_usb_device *d, u32 *event, int *state) in digitv_rc_query() argument
236 digitv_ctrl_msg(d,USB_READ_REMOTE,0,NULL,0,&key[1],4); in digitv_rc_query()
[all …]
Daz6027.c301 static int az6027_usb_in_op(struct dvb_usb_device *d, u8 req, in az6027_usb_in_op() argument
305 if (mutex_lock_interruptible(&d->usb_mutex)) in az6027_usb_in_op()
308 ret = usb_control_msg(d->udev, in az6027_usb_in_op()
309 usb_rcvctrlpipe(d->udev, 0), in az6027_usb_in_op()
327 mutex_unlock(&d->usb_mutex); in az6027_usb_in_op()
331 static int az6027_usb_out_op(struct dvb_usb_device *d, in az6027_usb_out_op() argument
343 if (mutex_lock_interruptible(&d->usb_mutex)) in az6027_usb_out_op()
346 ret = usb_control_msg(d->udev, in az6027_usb_out_op()
347 usb_sndctrlpipe(d->udev, 0), in az6027_usb_out_op()
358 mutex_unlock(&d->usb_mutex); in az6027_usb_out_op()
[all …]
/linux-4.4.14/arch/alpha/lib/
Dmemcpy.c24 #define ALIGN_DEST_TO8_UP(d,s,n) \ argument
25 while (d & 7) { \
28 *(char *) d = *(char *) s; \
29 d++; s++; \
31 #define ALIGN_DEST_TO8_DN(d,s,n) \ argument
32 while (d & 7) { \
35 d--; s--; \
36 *(char *) d = *(char *) s; \
43 #define DO_REST_UP(d,s,n) \ argument
46 *(char *) d = *(char *) s; \
[all …]
/linux-4.4.14/drivers/acpi/acpica/
Dacmacros.h88 #define ACPI_MOVE_16_TO_16(d, s) {(( u8 *)(void *)(d))[0] = ((u8 *)(void *)(s))[1];\ argument
89 (( u8 *)(void *)(d))[1] = ((u8 *)(void *)(s))[0];}
91 #define ACPI_MOVE_16_TO_32(d, s) {(*(u32 *)(void *)(d))=0;\ argument
92 ((u8 *)(void *)(d))[2] = ((u8 *)(void *)(s))[1];\
93 ((u8 *)(void *)(d))[3] = ((u8 *)(void *)(s))[0];}
95 #define ACPI_MOVE_16_TO_64(d, s) {(*(u64 *)(void *)(d))=0;\ argument
96 ((u8 *)(void *)(d))[6] = ((u8 *)(void *)(s))[1];\
97 ((u8 *)(void *)(d))[7] = ((u8 *)(void *)(s))[0];}
101 #define ACPI_MOVE_32_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */ argument
103 #define ACPI_MOVE_32_TO_32(d, s) {(( u8 *)(void *)(d))[0] = ((u8 *)(void *)(s))[3];\ argument
[all …]
/linux-4.4.14/arch/cris/include/arch-v32/mach-fs/mach/
Dstartup.inc10 move.d CONFIG_ETRAX_DEF_GIO_PA_OUT, $r0
11 move.d REG_ADDR(gio, regi_gio, rw_pa_dout), $r1
12 move.d $r0, [$r1]
14 move.d CONFIG_ETRAX_DEF_GIO_PA_OE, $r0
15 move.d REG_ADDR(gio, regi_gio, rw_pa_oe), $r1
16 move.d $r0, [$r1]
18 move.d CONFIG_ETRAX_DEF_GIO_PB_OUT, $r0
19 move.d REG_ADDR(gio, regi_gio, rw_pb_dout), $r1
20 move.d $r0, [$r1]
22 move.d CONFIG_ETRAX_DEF_GIO_PB_OE, $r0
[all …]
/linux-4.4.14/crypto/
Ddes_generic.c590 #define ROUND(L, R, A, B, K, d) \ argument
591 B = K[0]; A = K[1]; K += d; \
617 #define DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) argument
634 unsigned long a, b, c, d, w; in des_ekey() local
637 d = k[4]; d &= 0x0e; d <<= 4; d |= k[0] & 0x1e; d = pc1[d]; in des_ekey()
642 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey()
643 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
644 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
645 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey()
646 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey()
[all …]
Dmd4.c63 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument
64 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument
65 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument
86 u32 a, b, c, d; in md4_transform() local
91 d = hash[3]; in md4_transform()
93 ROUND1(a, b, c, d, in[0], 3); in md4_transform()
94 ROUND1(d, a, b, c, in[1], 7); in md4_transform()
95 ROUND1(c, d, a, b, in[2], 11); in md4_transform()
96 ROUND1(b, c, d, a, in[3], 19); in md4_transform()
97 ROUND1(a, b, c, d, in[4], 3); in md4_transform()
[all …]
Dsha256_generic.c57 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local
70 a=state[0]; b=state[1]; c=state[2]; d=state[3]; in sha256_transform()
75 t2 = e0(a) + Maj(a,b,c); d+=t1; h=t1+t2; in sha256_transform()
76 t1 = g + e1(d) + Ch(d,e,f) + 0x71374491 + W[ 1]; in sha256_transform()
78 t1 = f + e1(c) + Ch(c,d,e) + 0xb5c0fbcf + W[ 2]; in sha256_transform()
80 t1 = e + e1(b) + Ch(b,c,d) + 0xe9b5dba5 + W[ 3]; in sha256_transform()
82 t1 = d + e1(a) + Ch(a,b,c) + 0x3956c25b + W[ 4]; in sha256_transform()
83 t2 = e0(e) + Maj(e,f,g); h+=t1; d=t1+t2; in sha256_transform()
85 t2 = e0(d) + Maj(d,e,f); g+=t1; c=t1+t2; in sha256_transform()
87 t2 = e0(c) + Maj(c,d,e); f+=t1; b=t1+t2; in sha256_transform()
[all …]
Dtwofish_generic.c67 #define ENCROUND(n, a, b, c, d) \ argument
72 (d) = rol32((d), 1) ^ y
74 #define DECROUND(n, a, b, c, d) \ argument
77 (d) ^= y + ctx->k[2 * (n) + 1]; \
78 (d) = ror32((d), 1); \
86 ENCROUND (2 * (n), a, b, c, d); \
87 ENCROUND (2 * (n) + 1, c, d, a, b)
90 DECROUND (2 * (n) + 1, c, d, a, b); \
91 DECROUND (2 * (n), a, b, c, d)
116 u32 a, b, c, d; in twofish_encrypt() local
[all …]
/linux-4.4.14/lib/
Dmd5.c15 u32 a, b, c, d; in md5_transform() local
20 d = hash[3]; in md5_transform()
22 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in md5_transform()
23 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in md5_transform()
24 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in md5_transform()
25 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in md5_transform()
26 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in md5_transform()
27 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in md5_transform()
28 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in md5_transform()
29 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in md5_transform()
[all …]
Dhalfmd4.c17 #define ROUND(f, a, b, c, d, x, s) \ argument
18 (a += f(b, c, d) + x, a = rol32(a, s))
28 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local
31 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform()
32 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform()
33 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform()
34 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform()
35 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform()
36 ROUND(F, d, a, b, c, in[5] + K1, 7); in half_md4_transform()
37 ROUND(F, c, d, a, b, in[6] + K1, 11); in half_md4_transform()
[all …]
/linux-4.4.14/net/bluetooth/rfcomm/
Dcore.c57 static int rfcomm_queue_disc(struct rfcomm_dlc *d);
59 static int rfcomm_send_pn(struct rfcomm_session *s, int cr, struct rfcomm_dlc *d);
212 static int rfcomm_check_security(struct rfcomm_dlc *d) in rfcomm_check_security() argument
214 struct sock *sk = d->session->sock->sk; in rfcomm_check_security()
219 switch (d->sec_level) { in rfcomm_check_security()
232 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
233 d->out); in rfcomm_check_security()
263 struct rfcomm_dlc *d = (void *) arg; in rfcomm_dlc_timeout() local
265 BT_DBG("dlc %p state %ld", d, d->state); in rfcomm_dlc_timeout()
267 set_bit(RFCOMM_TIMED_OUT, &d->flags); in rfcomm_dlc_timeout()
[all …]
/linux-4.4.14/fs/nfs/
Dpnfs_dev.c82 struct nfs4_deviceid_node *d; in _lookup_deviceid() local
84 hlist_for_each_entry_rcu(d, &nfs4_deviceid_cache[hash], node) in _lookup_deviceid()
85 if (d->ld == ld && d->nfs_client == clp && in _lookup_deviceid()
86 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid()
87 if (atomic_read(&d->ref)) in _lookup_deviceid()
88 return d; in _lookup_deviceid()
100 struct nfs4_deviceid_node *d = NULL; in nfs4_get_device_info() local
150 d = server->pnfs_curr_ld->alloc_deviceid_node(server, pdev, in nfs4_get_device_info()
152 if (d && pdev->nocache) in nfs4_get_device_info()
153 set_bit(NFS_DEVICEID_NOCACHE, &d->flags); in nfs4_get_device_info()
[all …]
/linux-4.4.14/net/bridge/
Dbr_sysfs_br.c31 static ssize_t store_bridge_parm(struct device *d, in store_bridge_parm() argument
35 struct net_bridge *br = to_bridge(d); in store_bridge_parm()
52 static ssize_t forward_delay_show(struct device *d, in forward_delay_show() argument
55 struct net_bridge *br = to_bridge(d); in forward_delay_show()
59 static ssize_t forward_delay_store(struct device *d, in forward_delay_store() argument
63 return store_bridge_parm(d, buf, len, br_set_forward_delay); in forward_delay_store()
67 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show() argument
71 jiffies_to_clock_t(to_bridge(d)->hello_time)); in hello_time_show()
74 static ssize_t hello_time_store(struct device *d, in hello_time_store() argument
78 return store_bridge_parm(d, buf, len, br_set_hello_time); in hello_time_store()
[all …]
/linux-4.4.14/net/sched/
Dact_skbedit.c35 struct tcf_skbedit *d = a->priv; in tcf_skbedit() local
37 spin_lock(&d->tcf_lock); in tcf_skbedit()
38 d->tcf_tm.lastuse = jiffies; in tcf_skbedit()
39 bstats_update(&d->tcf_bstats, skb); in tcf_skbedit()
41 if (d->flags & SKBEDIT_F_PRIORITY) in tcf_skbedit()
42 skb->priority = d->priority; in tcf_skbedit()
43 if (d->flags & SKBEDIT_F_QUEUE_MAPPING && in tcf_skbedit()
44 skb->dev->real_num_tx_queues > d->queue_mapping) in tcf_skbedit()
45 skb_set_queue_mapping(skb, d->queue_mapping); in tcf_skbedit()
46 if (d->flags & SKBEDIT_F_MARK) in tcf_skbedit()
[all …]
Dact_simple.c33 struct tcf_defact *d = a->priv; in tcf_simp() local
35 spin_lock(&d->tcf_lock); in tcf_simp()
36 d->tcf_tm.lastuse = jiffies; in tcf_simp()
37 bstats_update(&d->tcf_bstats, skb); in tcf_simp()
44 (char *)d->tcfd_defdata, d->tcf_bstats.packets); in tcf_simp()
45 spin_unlock(&d->tcf_lock); in tcf_simp()
46 return d->tcf_action; in tcf_simp()
51 struct tcf_defact *d = to_defact(a); in tcf_simp_release() local
52 kfree(d->tcfd_defdata); in tcf_simp_release()
55 static int alloc_defdata(struct tcf_defact *d, char *defdata) in alloc_defdata() argument
[all …]
/linux-4.4.14/arch/cris/include/arch-v32/mach-a3/mach/
Dstartup.inc13 or.d \BITS, \OUTREG
18 move.d CONFIG_ETRAX_DEF_GIO_PA_OUT, $r0
19 move.d REG_ADDR(gio, regi_gio, rw_pa_dout), $r1
20 move.d $r0, [$r1]
22 move.d CONFIG_ETRAX_DEF_GIO_PA_OE, $r0
23 move.d REG_ADDR(gio, regi_gio, rw_pa_oe), $r1
24 move.d $r0, [$r1]
26 move.d CONFIG_ETRAX_DEF_GIO_PB_OUT, $r0
27 move.d REG_ADDR(gio, regi_gio, rw_pb_dout), $r1
28 move.d $r0, [$r1]
[all …]
/linux-4.4.14/drivers/video/fbdev/
Dc2p_core.h20 static inline void _transp(u32 d[], unsigned int i1, unsigned int i2, in _transp() argument
23 u32 t = (d[i1] ^ (d[i2] >> shift)) & mask; in _transp()
25 d[i1] ^= t; in _transp()
26 d[i2] ^= t << shift; in _transp()
60 static inline void transp8(u32 d[], unsigned int n, unsigned int m) in transp8() argument
67 _transp(d, 0, 1, n, mask); in transp8()
69 _transp(d, 2, 3, n, mask); in transp8()
71 _transp(d, 4, 5, n, mask); in transp8()
73 _transp(d, 6, 7, n, mask); in transp8()
78 _transp(d, 0, 2, n, mask); in transp8()
[all …]
Dc2p_planar.c27 static void c2p_32x8(u32 d[8]) in c2p_32x8()
29 transp8(d, 16, 4); in c2p_32x8()
30 transp8(d, 8, 2); in c2p_32x8()
31 transp8(d, 4, 1); in c2p_32x8()
32 transp8(d, 2, 4); in c2p_32x8()
33 transp8(d, 1, 2); in c2p_32x8()
48 static inline void store_planar(void *dst, u32 dst_inc, u32 bpp, u32 d[8]) in store_planar()
53 put_unaligned_be32(d[perm_c2p_32x8[i]], dst); in store_planar()
62 u32 d[8], u32 mask) in store_planar_masked()
67 put_unaligned_be32(comp(d[perm_c2p_32x8[i]], in store_planar_masked()
[all …]
Dc2p_iplan2.c27 static void c2p_16x8(u32 d[4]) in c2p_16x8()
29 transp4(d, 8, 2); in c2p_16x8()
30 transp4(d, 1, 2); in c2p_16x8()
31 transp4x(d, 16, 2); in c2p_16x8()
32 transp4x(d, 2, 2); in c2p_16x8()
33 transp4(d, 4, 1); in c2p_16x8()
48 static inline void store_iplan2(void *dst, u32 bpp, u32 d[4]) in store_iplan2()
53 put_unaligned_be32(d[perm_c2p_16x8[i]], dst); in store_iplan2()
61 static inline void store_iplan2_masked(void *dst, u32 bpp, u32 d[4], u32 mask) in store_iplan2_masked()
66 put_unaligned_be32(comp(d[perm_c2p_16x8[i]], in store_iplan2_masked()
[all …]
Datafb_utils.h144 static inline void *fb_memmove(void *d, const void *s, size_t count) in fb_memmove() argument
146 if (d < s) { in fb_memmove()
154 : "=a" (d), "=a" (s), "=d" (count) in fb_memmove()
155 : "0" (d), "1" (s), "2" (count)); in fb_memmove()
175 : "=a" (d), "=a" (s), "=d" (count), "=d" (tmp) in fb_memmove()
176 : "0" (d), "1" (s), "2" (count)); in fb_memmove()
186 : "=a" (d), "=a" (s), "=d" (count) in fb_memmove()
187 : "0" ((char *) d + count), "1" ((char *) s + count), "2" (count)); in fb_memmove()
208 : "=a" (d), "=a" (s), "=d" (count), "=d" (tmp) in fb_memmove()
209 : "0" ((char *) d + count), "1" ((char *) s + count), "2" (count)); in fb_memmove()
[all …]
/linux-4.4.14/include/linux/
Dirq.h211 #define __irqd_to_state(d) ((d)->common->state_use_accessors) argument
213 static inline bool irqd_is_setaffinity_pending(struct irq_data *d) in irqd_is_setaffinity_pending() argument
215 return __irqd_to_state(d) & IRQD_SETAFFINITY_PENDING; in irqd_is_setaffinity_pending()
218 static inline bool irqd_is_per_cpu(struct irq_data *d) in irqd_is_per_cpu() argument
220 return __irqd_to_state(d) & IRQD_PER_CPU; in irqd_is_per_cpu()
223 static inline bool irqd_can_balance(struct irq_data *d) in irqd_can_balance() argument
225 return !(__irqd_to_state(d) & (IRQD_PER_CPU | IRQD_NO_BALANCING)); in irqd_can_balance()
228 static inline bool irqd_affinity_was_set(struct irq_data *d) in irqd_affinity_was_set() argument
230 return __irqd_to_state(d) & IRQD_AFFINITY_SET; in irqd_affinity_was_set()
233 static inline void irqd_mark_affinity_was_set(struct irq_data *d) in irqd_mark_affinity_was_set() argument
[all …]
Ddio.h250 static inline struct dio_driver *dio_dev_driver(const struct dio_dev *d) in dio_dev_driver() argument
252 return d->driver; in dio_dev_driver()
255 #define dio_resource_start(d) ((d)->resource.start) argument
256 #define dio_resource_end(d) ((d)->resource.end) argument
257 #define dio_resource_len(d) (resource_size(&(d)->resource)) argument
258 #define dio_resource_flags(d) ((d)->resource.flags) argument
260 #define dio_request_device(d, name) \ argument
261 request_mem_region(dio_resource_start(d), dio_resource_len(d), name)
262 #define dio_release_device(d) \ argument
263 release_mem_region(dio_resource_start(d), dio_resource_len(d))
[all …]
/linux-4.4.14/lib/lz4/
Dlz4defs.h35 #define PUT4(s, d) (A32(d) = A32(s)) argument
36 #define PUT8(s, d) (A64(d) = A64(s)) argument
38 #define LZ4_READ_LITTLEENDIAN_16(d, s, p) \ argument
39 (d = s - A16(p))
52 #define PUT4(s, d) \ argument
53 put_unaligned(get_unaligned((const u32 *) s), (u32 *) d)
54 #define PUT8(s, d) \ argument
55 put_unaligned(get_unaligned((const u64 *) s), (u64 *) d)
57 #define LZ4_READ_LITTLEENDIAN_16(d, s, p) \ argument
58 (d = s - get_unaligned_le16(p))
[all …]
/linux-4.4.14/tools/hv/
Dlsvmbus73 d = VMBus_Dev()
74 d.sysfs_path = '%s/%s' % (vmbus_sys_path, f)
75 d.vmbus_id = vmbus_id
76 d.class_id = class_id
77 d.device_id = device_id
78 d.dev_desc = dev_desc
79 d.chn_vp_mapping = '\n'.join(chn_vp_mapping)
80 if d.chn_vp_mapping:
81 d.chn_vp_mapping += '\n'
83 vmbus_dev_list.append(d)
[all …]
/linux-4.4.14/drivers/dma/
Dk3dma.c129 static void k3_dma_terminate_chan(struct k3_dma_phy *phy, struct k3_dma_dev *d) in k3_dma_terminate_chan() argument
136 writel_relaxed(val, d->base + INT_TC1_RAW); in k3_dma_terminate_chan()
137 writel_relaxed(val, d->base + INT_ERR1_RAW); in k3_dma_terminate_chan()
138 writel_relaxed(val, d->base + INT_ERR2_RAW); in k3_dma_terminate_chan()
151 static u32 k3_dma_get_curr_cnt(struct k3_dma_dev *d, struct k3_dma_phy *phy) in k3_dma_get_curr_cnt() argument
155 cnt = readl_relaxed(d->base + CX_CUR_CNT + phy->idx * 0x10); in k3_dma_get_curr_cnt()
165 static u32 k3_dma_get_chan_stat(struct k3_dma_dev *d) in k3_dma_get_chan_stat() argument
167 return readl_relaxed(d->base + CH_STAT); in k3_dma_get_chan_stat()
170 static void k3_dma_enable_dma(struct k3_dma_dev *d, bool on) in k3_dma_enable_dma() argument
174 writel_relaxed(0x0, d->base + CH_PRI); in k3_dma_enable_dma()
[all …]
Dzx296702_dma.c141 static void zx_dma_terminate_chan(struct zx_dma_phy *phy, struct zx_dma_dev *d) in zx_dma_terminate_chan() argument
151 writel_relaxed(val, d->base + REG_ZX_TC_IRQ_RAW); in zx_dma_terminate_chan()
152 writel_relaxed(val, d->base + REG_ZX_SRC_ERR_IRQ_RAW); in zx_dma_terminate_chan()
153 writel_relaxed(val, d->base + REG_ZX_DST_ERR_IRQ_RAW); in zx_dma_terminate_chan()
154 writel_relaxed(val, d->base + REG_ZX_CFG_ERR_IRQ_RAW); in zx_dma_terminate_chan()
174 static u32 zx_dma_get_chan_stat(struct zx_dma_dev *d) in zx_dma_get_chan_stat() argument
176 return readl_relaxed(d->base + REG_ZX_STATUS); in zx_dma_get_chan_stat()
179 static void zx_dma_init_state(struct zx_dma_dev *d) in zx_dma_init_state() argument
182 writel_relaxed(0x0, d->base + REG_ZX_DMA_ARB); in zx_dma_init_state()
184 writel_relaxed(0xffffffff, d->base + REG_ZX_TC_IRQ_RAW); in zx_dma_init_state()
[all …]
Domap-dma.c165 static inline struct omap_dmadev *to_omap_dma_dev(struct dma_device *d) in to_omap_dma_dev() argument
167 return container_of(d, struct omap_dmadev, ddev); in to_omap_dma_dev()
284 static void omap_dma_start(struct omap_chan *c, struct omap_desc *d) in omap_dma_start() argument
296 omap_dma_chan_write(c, CICR, d->cicr); in omap_dma_start()
299 omap_dma_chan_write(c, CCR, d->ccr | CCR_ENABLE); in omap_dma_start()
363 static void omap_dma_start_sg(struct omap_chan *c, struct omap_desc *d, in omap_dma_start_sg() argument
366 struct omap_sg *sg = d->sg + idx; in omap_dma_start_sg()
369 if (d->dir == DMA_DEV_TO_MEM || d->dir == DMA_MEM_TO_MEM) { in omap_dma_start_sg()
385 omap_dma_start(c, d); in omap_dma_start_sg()
391 struct omap_desc *d; in omap_dma_start_desc() local
[all …]
Dbcm2835-dma.c133 static inline struct bcm2835_dmadev *to_bcm2835_dma_dev(struct dma_device *d) in to_bcm2835_dma_dev() argument
135 return container_of(d, struct bcm2835_dmadev, ddev); in to_bcm2835_dma_dev()
200 struct bcm2835_desc *d; in bcm2835_dma_start_desc() local
209 c->desc = d = to_bcm2835_dma_desc(&vd->tx); in bcm2835_dma_start_desc()
211 writel(d->cb_list[0].paddr, c->chan_base + BCM2835_DMA_ADDR); in bcm2835_dma_start_desc()
218 struct bcm2835_desc *d; in bcm2835_dma_callback() local
226 d = c->desc; in bcm2835_dma_callback()
228 if (d) { in bcm2835_dma_callback()
230 vchan_cyclic_callback(&d->vd); in bcm2835_dma_callback()
270 static size_t bcm2835_dma_desc_size(struct bcm2835_desc *d) in bcm2835_dma_desc_size() argument
[all …]
Dsa11x0-dma.c255 struct sa11x0_dma_dev *d = p->dev; in sa11x0_dma_irq() local
267 dev_dbg(d->slave.dev, "pchan %u: irq: DCSR:%02x\n", p->num, dcsr); in sa11x0_dma_irq()
270 …dev_err(d->slave.dev, "pchan %u: error. DCSR:%02x DDAR:%08x DBSA:%08x DBTA:%08x DBSB:%08x DBTB:%08… in sa11x0_dma_irq()
332 struct sa11x0_dma_dev *d = (struct sa11x0_dma_dev *)arg; in sa11x0_dma_tasklet() local
337 dev_dbg(d->slave.dev, "tasklet enter\n"); in sa11x0_dma_tasklet()
339 list_for_each_entry(c, &d->slave.channels, vc.chan.device_node) { in sa11x0_dma_tasklet()
346 dev_dbg(d->slave.dev, "pchan %u: free\n", p->num); in sa11x0_dma_tasklet()
356 spin_lock_irq(&d->lock); in sa11x0_dma_tasklet()
358 p = &d->phy[pch]; in sa11x0_dma_tasklet()
360 if (p->vchan == NULL && !list_empty(&d->chan_pending)) { in sa11x0_dma_tasklet()
[all …]
/linux-4.4.14/drivers/net/ethernet/ibm/emac/
Ddebug.h56 #define EMAC_DBG(d, name, fmt, arg...) \ argument
57 printk(KERN_DEBUG #name "%s: " fmt, d->ofdev->dev.of_node->full_name, ## arg)
60 # define DBG(d,f,x...) EMAC_DBG(d, emac, f, ##x) argument
61 # define MAL_DBG(d,f,x...) EMAC_DBG(d, mal, f, ##x) argument
62 # define ZMII_DBG(d,f,x...) EMAC_DBG(d, zmii, f, ##x) argument
63 # define RGMII_DBG(d,f,x...) EMAC_DBG(d, rgmii, f, ##x) argument
67 # define MAL_DBG(d,f,x...) ((void)0) argument
68 # define ZMII_DBG(d,f,x...) ((void)0) argument
69 # define RGMII_DBG(d,f,x...) ((void)0) argument
72 # define DBG2(d,f,x...) DBG(d,f, ##x) argument
[all …]
/linux-4.4.14/arch/cris/arch-v10/lib/
Ddram_init.S22 move.d CONFIG_ETRAX_DEF_R_WAITSTATES, $r0
23 move.d $r0, [R_WAITSTATES]
25 move.d CONFIG_ETRAX_DEF_R_BUS_CONFIG, $r0
26 move.d $r0, [R_BUS_CONFIG]
29 move.d CONFIG_ETRAX_DEF_R_DRAM_CONFIG, $r0
30 move.d $r0, [R_DRAM_CONFIG]
32 move.d CONFIG_ETRAX_DEF_R_DRAM_TIMING, $r0
33 move.d $r0, [R_DRAM_TIMING]
42 move.d CONFIG_ETRAX_DEF_R_SDRAM_CONFIG, $r0
43 move.d $r0, [R_SDRAM_CONFIG]
[all …]
Dchecksum.S39 add.d $r0,$r12
41 add.d $r1,$r12
43 add.d $r2,$r12
45 add.d $r3,$r12
47 add.d $r4,$r12
49 add.d $r5,$r12
51 add.d $r6,$r12
53 add.d $r7,$r12
55 add.d $r8,$r12
57 add.d $r9,$r12
[all …]
/linux-4.4.14/drivers/thermal/int340x_thermal/
Dint340x_thermal_zone.c25 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_zone_temp() local
29 if (d->override_ops && d->override_ops->get_temp) in int340x_thermal_get_zone_temp()
30 return d->override_ops->get_temp(zone, temp); in int340x_thermal_get_zone_temp()
32 status = acpi_evaluate_integer(d->adev->handle, "_TMP", NULL, &tmp); in int340x_thermal_get_zone_temp()
36 if (d->lpat_table) { in int340x_thermal_get_zone_temp()
39 conv_temp = acpi_lpat_raw_to_temp(d->lpat_table, (int)tmp); in int340x_thermal_get_zone_temp()
54 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp() local
57 if (d->override_ops && d->override_ops->get_trip_temp) in int340x_thermal_get_trip_temp()
58 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
60 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
[all …]
Dint3402_thermal.c48 struct int3402_thermal_data *d; in int3402_thermal_probe() local
54 d = devm_kzalloc(&pdev->dev, sizeof(*d), GFP_KERNEL); in int3402_thermal_probe()
55 if (!d) in int3402_thermal_probe()
58 d->int340x_zone = int340x_thermal_zone_add(adev, NULL); in int3402_thermal_probe()
59 if (IS_ERR(d->int340x_zone)) in int3402_thermal_probe()
60 return PTR_ERR(d->int340x_zone); in int3402_thermal_probe()
65 d); in int3402_thermal_probe()
67 int340x_thermal_zone_remove(d->int340x_zone); in int3402_thermal_probe()
71 d->handle = adev->handle; in int3402_thermal_probe()
72 platform_set_drvdata(pdev, d); in int3402_thermal_probe()
[all …]
/linux-4.4.14/arch/mips/include/asm/
Dasmmacro-32.h19 s.d $f0, THREAD_FPR0(\thread)
20 s.d $f2, THREAD_FPR2(\thread)
21 s.d $f4, THREAD_FPR4(\thread)
22 s.d $f6, THREAD_FPR6(\thread)
23 s.d $f8, THREAD_FPR8(\thread)
24 s.d $f10, THREAD_FPR10(\thread)
25 s.d $f12, THREAD_FPR12(\thread)
26 s.d $f14, THREAD_FPR14(\thread)
27 s.d $f16, THREAD_FPR16(\thread)
28 s.d $f18, THREAD_FPR18(\thread)
[all …]
/linux-4.4.14/arch/powerpc/net/
Dbpf_jit.h89 #define PLANT_INSTR(d, idx, instr) \ argument
90 do { if (d) { (d)[idx] = instr; } idx++; } while (0)
97 #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) | \ argument
99 #define PPC_MR(d, a) PPC_OR(d, a, a) argument
101 #define PPC_ADDIS(d, a, i) EMIT(PPC_INST_ADDIS | \ argument
102 ___PPC_RS(d) | ___PPC_RA(a) | IMM_L(i))
179 #define PPC_SUB(d, a, b) EMIT(PPC_INST_SUB | ___PPC_RT(d) | \ argument
181 #define PPC_ADD(d, a, b) EMIT(PPC_INST_ADD | ___PPC_RT(d) | \ argument
183 #define PPC_MUL(d, a, b) EMIT(PPC_INST_MULLW | ___PPC_RT(d) | \ argument
185 #define PPC_MULHWU(d, a, b) EMIT(PPC_INST_MULHWU | ___PPC_RT(d) | \ argument
[all …]
/linux-4.4.14/arch/x86/crypto/
Ddes3_ede-asm_64.S89 movl val##d, RT0d; \
99 orl RT0d, val##d;
102 do_permutation(left##d, right##d, 4, 0x0f0f0f0f); \
103 do_permutation(left##d, right##d, 16, 0x0000ffff); \
104 do_permutation(right##d, left##d, 2, 0x33333333); \
105 do_permutation(right##d, left##d, 8, 0x00ff00ff); \
107 movl left##d, RW0d; \
108 roll $1, right##d; \
109 xorl right##d, RW0d; \
111 xorl RW0d, left##d; \
[all …]
Dtwofish-x86_64-asm_64-3way.S89 movzbl ab ## bl, tmp2 ## d; \
90 movzbl ab ## bh, tmp1 ## d; \
92 op1##l T0(CTX, tmp2, 4), dst ## d; \
93 op2##l T1(CTX, tmp1, 4), dst ## d;
124 addl y ## d, x ## d; \
125 addl x ## d, y ## d; \
126 addl k+4*(2*(n))(CTX), x ## d; \
127 xorl ab ## d, x ## d; \
128 addl k+4*(2*(n)+1)(CTX), y ## d; \
130 roll $1, ab ## d; \
[all …]
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-omnitek.c166 struct sg_dma_descriptor *d = (struct sg_dma_descriptor *)desc->virt; in descriptor_list_create() local
195 d->pci_l = addr & 0xffffffff; in descriptor_list_create()
198 d->pci_h = (u64)addr >> 32; in descriptor_list_create()
201 d->local = 0; in descriptor_list_create()
202 d->reserved0 = 0; in descriptor_list_create()
210 d->local = 0x11111111; in descriptor_list_create()
215 d->bytes = (bytes / 2) & ~3; in descriptor_list_create()
216 d->reserved1 = 0; in descriptor_list_create()
217 size -= d->bytes; in descriptor_list_create()
218 copied += d->bytes; in descriptor_list_create()
[all …]
/linux-4.4.14/arch/arm/mach-sa1100/
Dneponset.c171 struct neponset_drvdata *d = irq_desc_get_handler_data(desc); in neponset_irq_handler() local
185 irr = readb_relaxed(d->base + IRR); in neponset_irq_handler()
208 generic_handle_irq(d->irq_base + NEP_IRQ_SMC91X); in neponset_irq_handler()
211 generic_handle_irq(d->irq_base + NEP_IRQ_USAR); in neponset_irq_handler()
217 generic_handle_irq(d->irq_base + NEP_IRQ_SA1111); in neponset_irq_handler()
239 struct neponset_drvdata *d; in neponset_probe() local
291 d = kzalloc(sizeof(*d), GFP_KERNEL); in neponset_probe()
292 if (!d) { in neponset_probe()
297 d->base = ioremap(nep_res->start, SZ_4K); in neponset_probe()
298 if (!d->base) { in neponset_probe()
[all …]
/linux-4.4.14/drivers/media/tuners/
Dtda18271-maps.c26 u8 d; /* div */ member
37 { .lomax = 32000, .pd = 0x5f, .d = 0xf0 },
38 { .lomax = 35000, .pd = 0x5e, .d = 0xe0 },
39 { .lomax = 37000, .pd = 0x5d, .d = 0xd0 },
40 { .lomax = 41000, .pd = 0x5c, .d = 0xc0 },
41 { .lomax = 44000, .pd = 0x5b, .d = 0xb0 },
42 { .lomax = 49000, .pd = 0x5a, .d = 0xa0 },
43 { .lomax = 54000, .pd = 0x59, .d = 0x90 },
44 { .lomax = 61000, .pd = 0x58, .d = 0x80 },
45 { .lomax = 65000, .pd = 0x4f, .d = 0x78 },
[all …]
/linux-4.4.14/arch/arm/mach-mmp/include/mach/
Dpxa168.h49 struct pxa_device_desc *d = NULL; in pxa168_add_uart() local
52 case 1: d = &pxa168_device_uart1; break; in pxa168_add_uart()
53 case 2: d = &pxa168_device_uart2; break; in pxa168_add_uart()
54 case 3: d = &pxa168_device_uart3; break; in pxa168_add_uart()
57 if (d == NULL) in pxa168_add_uart()
60 return pxa_register_device(d, NULL, 0); in pxa168_add_uart()
66 struct pxa_device_desc *d = NULL; in pxa168_add_twsi() local
70 case 0: d = &pxa168_device_twsi0; break; in pxa168_add_twsi()
71 case 1: d = &pxa168_device_twsi1; break; in pxa168_add_twsi()
80 return pxa_register_device(d, data, sizeof(*data)); in pxa168_add_twsi()
[all …]
Dmmp2.h37 struct pxa_device_desc *d = NULL; in mmp2_add_uart() local
40 case 1: d = &mmp2_device_uart1; break; in mmp2_add_uart()
41 case 2: d = &mmp2_device_uart2; break; in mmp2_add_uart()
42 case 3: d = &mmp2_device_uart3; break; in mmp2_add_uart()
43 case 4: d = &mmp2_device_uart4; break; in mmp2_add_uart()
48 return pxa_register_device(d, NULL, 0); in mmp2_add_uart()
54 struct pxa_device_desc *d = NULL; in mmp2_add_twsi() local
58 case 1: d = &mmp2_device_twsi1; break; in mmp2_add_twsi()
59 case 2: d = &mmp2_device_twsi2; break; in mmp2_add_twsi()
60 case 3: d = &mmp2_device_twsi3; break; in mmp2_add_twsi()
[all …]
Dpxa910.h34 struct pxa_device_desc *d = NULL; in pxa910_add_uart() local
37 case 1: d = &pxa910_device_uart1; break; in pxa910_add_uart()
38 case 2: d = &pxa910_device_uart2; break; in pxa910_add_uart()
41 if (d == NULL) in pxa910_add_uart()
44 return pxa_register_device(d, NULL, 0); in pxa910_add_uart()
50 struct pxa_device_desc *d = NULL; in pxa910_add_twsi() local
54 case 0: d = &pxa910_device_twsi0; break; in pxa910_add_twsi()
55 case 1: d = &pxa910_device_twsi1; break; in pxa910_add_twsi()
64 return pxa_register_device(d, data, sizeof(*data)); in pxa910_add_twsi()
69 struct pxa_device_desc *d = NULL; in pxa910_add_pwm() local
[all …]
/linux-4.4.14/drivers/ide/
Dsetup-pci.c80 unsigned long ide_pci_dma_base(ide_hwif_t *hwif, const struct ide_port_info *d) in ide_pci_dma_base() argument
91 u8 baridx = (d->host_flags & IDE_HFLAG_CS5520) ? 2 : 4; in ide_pci_dma_base()
97 d->name, pci_name(dev)); in ide_pci_dma_base()
109 int ide_pci_check_simplex(ide_hwif_t *hwif, const struct ide_port_info *d) in ide_pci_check_simplex() argument
114 if (d->host_flags & (IDE_HFLAG_MMIO | IDE_HFLAG_CS5520)) in ide_pci_check_simplex()
117 if (d->host_flags & IDE_HFLAG_CLEAR_SIMPLEX) { in ide_pci_check_simplex()
118 if (ide_pci_clear_simplex(hwif->dma_base, d->name)) in ide_pci_check_simplex()
120 d->name, pci_name(dev)); in ide_pci_check_simplex()
137 d->name, pci_name(dev)); in ide_pci_check_simplex()
170 void ide_setup_pci_noise(struct pci_dev *dev, const struct ide_port_info *d) in ide_setup_pci_noise() argument
[all …]
Dide-scan-pci.c58 struct pci_driver *d; in ide_scan_pcidev() local
61 d = list_entry(l, struct pci_driver, node); in ide_scan_pcidev()
62 if (d->id_table) { in ide_scan_pcidev()
64 pci_match_id(d->id_table, dev); in ide_scan_pcidev()
66 if (id != NULL && d->probe(dev, id) >= 0) { in ide_scan_pcidev()
67 dev->driver = d; in ide_scan_pcidev()
87 struct pci_driver *d; in ide_scan_pcibus() local
101 d = list_entry(l, struct pci_driver, node); in ide_scan_pcibus()
102 if (__pci_register_driver(d, d->driver.owner, in ide_scan_pcibus()
103 d->driver.mod_name)) in ide_scan_pcibus()
[all …]
Dide-legacy.c6 u8 port_no, const struct ide_port_info *d, in ide_legacy_init_one() argument
22 if (!request_region(base, 8, d->name)) { in ide_legacy_init_one()
24 d->name, base, base + 7); in ide_legacy_init_one()
28 if (!request_region(ctl, 1, d->name)) { in ide_legacy_init_one()
30 d->name, ctl); in ide_legacy_init_one()
42 int ide_legacy_device_add(const struct ide_port_info *d, unsigned long config) in ide_legacy_device_add() argument
48 if ((d->host_flags & IDE_HFLAG_QD_2ND_PORT) == 0) in ide_legacy_device_add()
49 ide_legacy_init_one(hws, &hw[0], 0, d, config); in ide_legacy_device_add()
50 ide_legacy_init_one(hws, &hw[1], 1, d, config); in ide_legacy_device_add()
53 (d->host_flags & IDE_HFLAG_SINGLE)) in ide_legacy_device_add()
[all …]
/linux-4.4.14/drivers/mtd/ubi/
Ddebug.c265 struct ubi_debug_info *d; in dfs_file_read() local
272 d = &ubi->dbg; in dfs_file_read()
274 if (dent == d->dfs_chk_gen) in dfs_file_read()
275 val = d->chk_gen; in dfs_file_read()
276 else if (dent == d->dfs_chk_io) in dfs_file_read()
277 val = d->chk_io; in dfs_file_read()
278 else if (dent == d->dfs_chk_fastmap) in dfs_file_read()
279 val = d->chk_fastmap; in dfs_file_read()
280 else if (dent == d->dfs_disable_bgt) in dfs_file_read()
281 val = d->disable_bgt; in dfs_file_read()
[all …]
/linux-4.4.14/fs/xfs/
Dxfs_dquot.c94 struct xfs_disk_dquot *d = &dq->q_core; in xfs_qm_adjust_dqlimits() local
97 ASSERT(d->d_id); in xfs_qm_adjust_dqlimits()
99 if (q->qi_bsoftlimit && !d->d_blk_softlimit) { in xfs_qm_adjust_dqlimits()
100 d->d_blk_softlimit = cpu_to_be64(q->qi_bsoftlimit); in xfs_qm_adjust_dqlimits()
103 if (q->qi_bhardlimit && !d->d_blk_hardlimit) { in xfs_qm_adjust_dqlimits()
104 d->d_blk_hardlimit = cpu_to_be64(q->qi_bhardlimit); in xfs_qm_adjust_dqlimits()
107 if (q->qi_isoftlimit && !d->d_ino_softlimit) in xfs_qm_adjust_dqlimits()
108 d->d_ino_softlimit = cpu_to_be64(q->qi_isoftlimit); in xfs_qm_adjust_dqlimits()
109 if (q->qi_ihardlimit && !d->d_ino_hardlimit) in xfs_qm_adjust_dqlimits()
110 d->d_ino_hardlimit = cpu_to_be64(q->qi_ihardlimit); in xfs_qm_adjust_dqlimits()
[all …]
/linux-4.4.14/arch/cris/arch-v32/kernel/
Dkgdb_asm.S21 move.d $acr, [$sp]
308 move.d internal_stack+1020, $sp ; Use the internal stack which grows upwards
318 clear.d $r1 ; Bank counter
319 move.d sreg, $acr
326 move.d [$acr], $r0
329 move.d [$acr], $r0
332 move.d [$acr], $r0
335 move.d [$acr], $r0
338 move.d [$acr], $r0
341 move.d [$acr], $r0
[all …]
Dhead.S62 move.d REG_FIELD(mmu, rw_mm_kbase_hi, base_e, 8) \
67 move.d REG_FIELD(mmu, rw_mm_kbase_hi, base_e, 8) \
73 move.d REG_FIELD(mmu, rw_mm_kbase_lo, base_4, 4) \
80 ;; c,d used for linear kernel mapping, up to 512 MB
86 ;; d used for vmalloc
90 move.d REG_STATE(mmu, rw_mm_cfg, we, on) \
111 move.d REG_STATE(mmu, rw_mm_cfg, we, on) \
165 and.d 0x7fffffff, $r0 ; Mask off the non-cache bit.
166 cmp.d 0x10000, $r0 ; Arbitrary, something above this code.
185 cmp.d RAM_INIT_MAGIC, $r8 ; Already initialized?
[all …]
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dfw_inc.c132 const struct wil_fw_record_data *d = data; in fw_handle_data() local
134 size_t s = size - sizeof(*d); in fw_handle_data()
136 if (size < sizeof(*d) + sizeof(u32)) { in fw_handle_data()
141 FW_ADDR_CHECK(dst, d->addr, "address"); in fw_handle_data()
142 wil_dbg_fw(wil, "write [0x%08x] <== %zu bytes\n", le32_to_cpu(d->addr), in fw_handle_data()
144 wil_memcpy_toio_32(dst, d->data, s); in fw_handle_data()
153 const struct wil_fw_record_fill *d = data; in fw_handle_fill() local
156 size_t s = (size_t)le32_to_cpu(d->size); in fw_handle_fill()
158 if (size != sizeof(*d)) { in fw_handle_fill()
173 FW_ADDR_CHECK(dst, d->addr, "address"); in fw_handle_fill()
[all …]
Dtxrx.h85 u32 d[3]; member
442 static inline int wil_rxdesc_tid(struct vring_rx_desc *d) in wil_rxdesc_tid() argument
444 return WIL_GET_BITS(d->mac.d0, 0, 3); in wil_rxdesc_tid()
447 static inline int wil_rxdesc_cid(struct vring_rx_desc *d) in wil_rxdesc_cid() argument
449 return WIL_GET_BITS(d->mac.d0, 4, 6); in wil_rxdesc_cid()
452 static inline int wil_rxdesc_mid(struct vring_rx_desc *d) in wil_rxdesc_mid() argument
454 return WIL_GET_BITS(d->mac.d0, 8, 9); in wil_rxdesc_mid()
457 static inline int wil_rxdesc_ftype(struct vring_rx_desc *d) in wil_rxdesc_ftype() argument
459 return WIL_GET_BITS(d->mac.d0, 10, 11); in wil_rxdesc_ftype()
462 static inline int wil_rxdesc_subtype(struct vring_rx_desc *d) in wil_rxdesc_subtype() argument
[all …]
Dtxrx.c139 static void wil_txdesc_unmap(struct device *dev, struct vring_tx_desc *d, in wil_txdesc_unmap() argument
142 dma_addr_t pa = wil_desc_addr(&d->dma.addr); in wil_txdesc_unmap()
143 u16 dmalen = le16_to_cpu(d->dma.length); in wil_txdesc_unmap()
181 struct vring_tx_desc dd, *d = &dd; in wil_vring_free() local
186 *d = *_d; in wil_vring_free()
187 wil_txdesc_unmap(dev, d, ctx); in wil_vring_free()
192 struct vring_rx_desc dd, *d = &dd; in wil_vring_free() local
197 *d = *_d; in wil_vring_free()
198 pa = wil_desc_addr(&d->dma.addr); in wil_vring_free()
199 dmalen = le16_to_cpu(d->dma.length); in wil_vring_free()
[all …]
/linux-4.4.14/arch/cris/arch-v32/mach-a3/
Ddram_init.S28 move.d 10000, $r2
33 move.d REG_ADDR(ddr2, regi_ddr2_ctrl, rw_phy_cfg), $r0
34 move.d REG_STATE(ddr2, rw_phy_cfg, en, yes), $r1
35 move.d $r1, [$r0]
38 move.d 10000, $r2
43 move.d REG_ADDR(ddr2, regi_ddr2_ctrl, rw_phy_ctrl), $r0
44 move.d REG_STATE(ddr2, rw_phy_ctrl, rst, yes) | \
46 move.d $r1, [$r0]
47 move.d REG_STATE(ddr2, rw_phy_ctrl, cal_start, yes), $r1
48 move.d $r1, [$r0]
[all …]
/linux-4.4.14/drivers/irqchip/
Dirq-xtensa-mx.c25 static int xtensa_mx_irq_map(struct irq_domain *d, unsigned int irq, in xtensa_mx_irq_map() argument
29 struct irq_chip *irq_chip = d->host_data; in xtensa_mx_irq_map()
35 return xtensa_irq_map(d, irq, hw); in xtensa_mx_irq_map()
44 static int xtensa_mx_irq_domain_xlate(struct irq_domain *d, in xtensa_mx_irq_domain_xlate() argument
68 static void xtensa_mx_irq_mask(struct irq_data *d) in xtensa_mx_irq_mask() argument
70 unsigned int mask = 1u << d->hwirq; in xtensa_mx_irq_mask()
74 set_er(1u << (xtensa_get_ext_irq_no(d->hwirq) - in xtensa_mx_irq_mask()
83 static void xtensa_mx_irq_unmask(struct irq_data *d) in xtensa_mx_irq_unmask() argument
85 unsigned int mask = 1u << d->hwirq; in xtensa_mx_irq_unmask()
89 set_er(1u << (xtensa_get_ext_irq_no(d->hwirq) - in xtensa_mx_irq_unmask()
[all …]
Dirq-xtensa-pic.c29 static int xtensa_pic_irq_domain_xlate(struct irq_domain *d, in xtensa_pic_irq_domain_xlate() argument
44 static void xtensa_irq_mask(struct irq_data *d) in xtensa_irq_mask() argument
46 cached_irq_mask &= ~(1 << d->hwirq); in xtensa_irq_mask()
50 static void xtensa_irq_unmask(struct irq_data *d) in xtensa_irq_unmask() argument
52 cached_irq_mask |= 1 << d->hwirq; in xtensa_irq_unmask()
56 static void xtensa_irq_enable(struct irq_data *d) in xtensa_irq_enable() argument
58 variant_irq_enable(d->hwirq); in xtensa_irq_enable()
59 xtensa_irq_unmask(d); in xtensa_irq_enable()
62 static void xtensa_irq_disable(struct irq_data *d) in xtensa_irq_disable() argument
64 xtensa_irq_mask(d); in xtensa_irq_disable()
[all …]
Dirq-gic-v3.c63 static inline unsigned int gic_irq(struct irq_data *d) in gic_irq() argument
65 return d->hwirq; in gic_irq()
68 static inline int gic_irq_in_rdist(struct irq_data *d) in gic_irq_in_rdist() argument
70 return gic_irq(d) < 32; in gic_irq_in_rdist()
73 static inline void __iomem *gic_dist_base(struct irq_data *d) in gic_dist_base() argument
75 if (gic_irq_in_rdist(d)) /* SGI+PPI -> SGI_base for this CPU */ in gic_dist_base()
78 if (d->hwirq <= 1023) /* SPI -> dist_base */ in gic_dist_base()
160 static int gic_peek_irq(struct irq_data *d, u32 offset) in gic_peek_irq() argument
162 u32 mask = 1 << (gic_irq(d) % 32); in gic_peek_irq()
165 if (gic_irq_in_rdist(d)) in gic_peek_irq()
[all …]
Dirq-hip04.c74 static inline void __iomem *hip04_dist_base(struct irq_data *d) in hip04_dist_base() argument
76 struct hip04_irq_data *hip04_data = irq_data_get_irq_chip_data(d); in hip04_dist_base()
80 static inline void __iomem *hip04_cpu_base(struct irq_data *d) in hip04_cpu_base() argument
82 struct hip04_irq_data *hip04_data = irq_data_get_irq_chip_data(d); in hip04_cpu_base()
86 static inline unsigned int hip04_irq(struct irq_data *d) in hip04_irq() argument
88 return d->hwirq; in hip04_irq()
94 static void hip04_mask_irq(struct irq_data *d) in hip04_mask_irq() argument
96 u32 mask = 1 << (hip04_irq(d) % 32); in hip04_mask_irq()
99 writel_relaxed(mask, hip04_dist_base(d) + GIC_DIST_ENABLE_CLEAR + in hip04_mask_irq()
100 (hip04_irq(d) / 32) * 4); in hip04_mask_irq()
[all …]
Dirq-atmel-aic5.c86 static void aic5_mask(struct irq_data *d) in aic5_mask() argument
88 struct irq_domain *domain = d->domain; in aic5_mask()
90 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_mask()
97 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_mask()
99 gc->mask_cache &= ~d->mask; in aic5_mask()
103 static void aic5_unmask(struct irq_data *d) in aic5_unmask() argument
105 struct irq_domain *domain = d->domain; in aic5_unmask()
107 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic5_unmask()
114 irq_reg_writel(gc, d->hwirq, AT91_AIC5_SSR); in aic5_unmask()
116 gc->mask_cache |= d->mask; in aic5_unmask()
[all …]
Dirq-mxs.c75 static u32 icoll_intr_bitshift(struct irq_data *d, u32 bit) in icoll_intr_bitshift() argument
81 return bit << ((d->hwirq & 3) << 3); in icoll_intr_bitshift()
85 static void __iomem *icoll_intr_reg(struct irq_data *d) in icoll_intr_reg() argument
88 return icoll_priv.intr + ((d->hwirq >> 2) * 0x10); in icoll_intr_reg()
91 static void icoll_ack_irq(struct irq_data *d) in icoll_ack_irq() argument
102 static void icoll_mask_irq(struct irq_data *d) in icoll_mask_irq() argument
105 icoll_priv.intr + CLR_REG + HW_ICOLL_INTERRUPTn(d->hwirq)); in icoll_mask_irq()
108 static void icoll_unmask_irq(struct irq_data *d) in icoll_unmask_irq() argument
111 icoll_priv.intr + SET_REG + HW_ICOLL_INTERRUPTn(d->hwirq)); in icoll_unmask_irq()
114 static void asm9260_mask_irq(struct irq_data *d) in asm9260_mask_irq() argument
[all …]
Dirq-vt8500.c83 static void vt8500_irq_mask(struct irq_data *d) in vt8500_irq_mask() argument
85 struct vt8500_irq_data *priv = d->domain->host_data; in vt8500_irq_mask()
87 void __iomem *stat_reg = base + VT8500_ICIS + (d->hwirq < 32 ? 0 : 4); in vt8500_irq_mask()
91 edge = readb(base + VT8500_ICDC + d->hwirq) & VT8500_EDGE; in vt8500_irq_mask()
95 status |= (1 << (d->hwirq & 0x1f)); in vt8500_irq_mask()
98 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_mask()
100 writeb(dctr, base + VT8500_ICDC + d->hwirq); in vt8500_irq_mask()
104 static void vt8500_irq_unmask(struct irq_data *d) in vt8500_irq_unmask() argument
106 struct vt8500_irq_data *priv = d->domain->host_data; in vt8500_irq_unmask()
110 dctr = readb(base + VT8500_ICDC + d->hwirq); in vt8500_irq_unmask()
[all …]
Dirq-bcm7038-l1.c152 static void __bcm7038_l1_unmask(struct irq_data *d, unsigned int cpu_idx) in __bcm7038_l1_unmask() argument
154 struct bcm7038_l1_chip *intc = irq_data_get_irq_chip_data(d); in __bcm7038_l1_unmask()
155 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_unmask()
156 u32 mask = BIT(d->hwirq % IRQS_PER_WORD); in __bcm7038_l1_unmask()
163 static void __bcm7038_l1_mask(struct irq_data *d, unsigned int cpu_idx) in __bcm7038_l1_mask() argument
165 struct bcm7038_l1_chip *intc = irq_data_get_irq_chip_data(d); in __bcm7038_l1_mask()
166 u32 word = d->hwirq / IRQS_PER_WORD; in __bcm7038_l1_mask()
167 u32 mask = BIT(d->hwirq % IRQS_PER_WORD); in __bcm7038_l1_mask()
174 static void bcm7038_l1_unmask(struct irq_data *d) in bcm7038_l1_unmask() argument
176 struct bcm7038_l1_chip *intc = irq_data_get_irq_chip_data(d); in bcm7038_l1_unmask()
[all …]
Dirq-mips-cpu.c42 static inline void unmask_mips_irq(struct irq_data *d) in unmask_mips_irq() argument
44 set_c0_status(0x100 << (d->irq - MIPS_CPU_IRQ_BASE)); in unmask_mips_irq()
48 static inline void mask_mips_irq(struct irq_data *d) in mask_mips_irq() argument
50 clear_c0_status(0x100 << (d->irq - MIPS_CPU_IRQ_BASE)); in mask_mips_irq()
69 static unsigned int mips_mt_cpu_irq_startup(struct irq_data *d) in mips_mt_cpu_irq_startup() argument
73 clear_c0_cause(0x100 << (d->irq - MIPS_CPU_IRQ_BASE)); in mips_mt_cpu_irq_startup()
75 unmask_mips_irq(d); in mips_mt_cpu_irq_startup()
83 static void mips_mt_cpu_irq_ack(struct irq_data *d) in mips_mt_cpu_irq_ack() argument
86 clear_c0_cause(0x100 << (d->irq - MIPS_CPU_IRQ_BASE)); in mips_mt_cpu_irq_ack()
88 mask_mips_irq(d); in mips_mt_cpu_irq_ack()
[all …]
Dirq-gic.c135 #define gic_data_dist_base(d) ((d)->dist_base.common_base) argument
136 #define gic_data_cpu_base(d) ((d)->cpu_base.common_base) argument
137 #define gic_set_base_accessor(d, f) argument
140 static inline void __iomem *gic_dist_base(struct irq_data *d) in gic_dist_base() argument
142 struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d); in gic_dist_base()
146 static inline void __iomem *gic_cpu_base(struct irq_data *d) in gic_cpu_base() argument
148 struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d); in gic_cpu_base()
152 static inline unsigned int gic_irq(struct irq_data *d) in gic_irq() argument
154 return d->hwirq; in gic_irq()
157 static inline bool cascading_gic_irq(struct irq_data *d) in cascading_gic_irq() argument
[all …]
Dirq-tegra.c91 static inline void tegra_ictlr_write_mask(struct irq_data *d, unsigned long reg) in tegra_ictlr_write_mask() argument
93 void __iomem *base = d->chip_data; in tegra_ictlr_write_mask()
96 mask = BIT(d->hwirq % 32); in tegra_ictlr_write_mask()
100 static void tegra_mask(struct irq_data *d) in tegra_mask() argument
102 tegra_ictlr_write_mask(d, ICTLR_CPU_IER_CLR); in tegra_mask()
103 irq_chip_mask_parent(d); in tegra_mask()
106 static void tegra_unmask(struct irq_data *d) in tegra_unmask() argument
108 tegra_ictlr_write_mask(d, ICTLR_CPU_IER_SET); in tegra_unmask()
109 irq_chip_unmask_parent(d); in tegra_unmask()
112 static void tegra_eoi(struct irq_data *d) in tegra_eoi() argument
[all …]
Dirq-atmel-aic.c77 static int aic_retrigger(struct irq_data *d) in aic_retrigger() argument
79 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_retrigger()
83 irq_reg_writel(gc, d->mask, AT91_AIC_ISCR); in aic_retrigger()
89 static int aic_set_type(struct irq_data *d, unsigned type) in aic_set_type() argument
91 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_set_type()
95 smr = irq_reg_readl(gc, AT91_AIC_SMR(d->hwirq)); in aic_set_type()
96 ret = aic_common_set_type(d, type, &smr); in aic_set_type()
100 irq_reg_writel(gc, smr, AT91_AIC_SMR(d->hwirq)); in aic_set_type()
106 static void aic_suspend(struct irq_data *d) in aic_suspend() argument
108 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in aic_suspend()
[all …]
/linux-4.4.14/arch/cris/arch-v32/mach-fs/
Ddram_init.S28 move.d REG_ADDR(bif_core, regi_bif_core, rw_sdram_cfg_grp0), $r0
29 move.d CONFIG_ETRAX_SDRAM_GRP0_CONFIG, $r1
30 move.d $r1, [$r0]
31 move.d REG_ADDR(bif_core, regi_bif_core, rw_sdram_cfg_grp1), $r0
32 move.d CONFIG_ETRAX_SDRAM_GRP1_CONFIG, $r1
33 move.d $r1, [$r0]
42 move.d CONFIG_ETRAX_SDRAM_COMMAND, $r2
46 move.d 0x40, $r4 ; Assume 32 bits and CAS latency = 2
47 move.d CONFIG_ETRAX_SDRAM_TIMING, $r1
48 and.d 0x07, $r1 ; Get CAS latency
[all …]
/linux-4.4.14/drivers/gpu/drm/
Ddrm_legacy.h50 int drm_legacy_resctx(struct drm_device *d, void *v, struct drm_file *f);
51 int drm_legacy_addctx(struct drm_device *d, void *v, struct drm_file *f);
52 int drm_legacy_getctx(struct drm_device *d, void *v, struct drm_file *f);
53 int drm_legacy_switchctx(struct drm_device *d, void *v, struct drm_file *f);
54 int drm_legacy_newctx(struct drm_device *d, void *v, struct drm_file *f);
55 int drm_legacy_rmctx(struct drm_device *d, void *v, struct drm_file *f);
57 int drm_legacy_setsareactx(struct drm_device *d, void *v, struct drm_file *f);
58 int drm_legacy_getsareactx(struct drm_device *d, void *v, struct drm_file *f);
66 int drm_legacy_addmap_ioctl(struct drm_device *d, void *v, struct drm_file *f);
67 int drm_legacy_rmmap_ioctl(struct drm_device *d, void *v, struct drm_file *f);
[all …]
/linux-4.4.14/kernel/
Ddelayacct.c83 int __delayacct_add_tsk(struct taskstats *d, struct task_struct *tsk) in __delayacct_add_tsk() argument
91 tmp = (s64)d->cpu_run_real_total; in __delayacct_add_tsk()
93 d->cpu_run_real_total = (tmp < (s64)d->cpu_run_real_total) ? 0 : tmp; in __delayacct_add_tsk()
96 tmp = (s64)d->cpu_scaled_run_real_total; in __delayacct_add_tsk()
98 d->cpu_scaled_run_real_total = in __delayacct_add_tsk()
99 (tmp < (s64)d->cpu_scaled_run_real_total) ? 0 : tmp; in __delayacct_add_tsk()
109 d->cpu_count += t1; in __delayacct_add_tsk()
111 tmp = (s64)d->cpu_delay_total + t2; in __delayacct_add_tsk()
112 d->cpu_delay_total = (tmp < (s64)d->cpu_delay_total) ? 0 : tmp; in __delayacct_add_tsk()
114 tmp = (s64)d->cpu_run_virtual_total + t3; in __delayacct_add_tsk()
[all …]
/linux-4.4.14/arch/unicore32/boot/compressed/
Dmisc.c46 unsigned char *d = (unsigned char *)dest, *s = (unsigned char *)src; in memcpy() local
49 *d++ = *s++; in memcpy()
50 *d++ = *s++; in memcpy()
51 *d++ = *s++; in memcpy()
52 *d++ = *s++; in memcpy()
53 *d++ = *s++; in memcpy()
54 *d++ = *s++; in memcpy()
55 *d++ = *s++; in memcpy()
56 *d++ = *s++; in memcpy()
60 *d++ = *s++; in memcpy()
[all …]
/linux-4.4.14/drivers/dio/
Ddio-sysfs.c22 struct dio_dev *d; in dio_show_id() local
24 d = to_dio_dev(dev); in dio_show_id()
25 return sprintf(buf, "0x%02x\n", (d->id & 0xff)); in dio_show_id()
31 struct dio_dev *d; in dio_show_ipl() local
33 d = to_dio_dev(dev); in dio_show_ipl()
34 return sprintf(buf, "0x%02x\n", d->ipl); in dio_show_ipl()
40 struct dio_dev *d; in dio_show_secid() local
42 d = to_dio_dev(dev); in dio_show_secid()
43 return sprintf(buf, "0x%02x\n", ((d->id >> 8)& 0xff)); in dio_show_secid()
49 struct dio_dev *d; in dio_show_name() local
[all …]
Ddio-driver.c30 const struct dio_dev *d) in dio_match_device() argument
36 if (ids->id == d->id) in dio_match_device()
39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device()
51 struct dio_dev *d = to_dio_dev(dev); in dio_device_probe() local
53 if (!d->driver && drv->probe) { in dio_device_probe()
56 id = dio_match_device(drv->id_table, d); in dio_device_probe()
58 error = drv->probe(d, id); in dio_device_probe()
60 d->driver = drv; in dio_device_probe()
115 struct dio_dev *d = to_dio_dev(dev); in dio_bus_match() local
122 return dio_match_device(ids, d) ? 1 : 0; in dio_bus_match()
/linux-4.4.14/kernel/irq/
Dgeneric-chip.c24 void irq_gc_noop(struct irq_data *d) in irq_gc_noop() argument
35 void irq_gc_mask_disable_reg(struct irq_data *d) in irq_gc_mask_disable_reg() argument
37 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_disable_reg()
38 struct irq_chip_type *ct = irq_data_get_chip_type(d); in irq_gc_mask_disable_reg()
39 u32 mask = d->mask; in irq_gc_mask_disable_reg()
54 void irq_gc_mask_set_bit(struct irq_data *d) in irq_gc_mask_set_bit() argument
56 struct irq_chip_generic *gc = irq_data_get_irq_chip_data(d); in irq_gc_mask_set_bit()
57 struct irq_chip_type *ct = irq_data_get_chip_type(d); in irq_gc_mask_set_bit()
58 u32 mask = d->mask; in irq_gc_mask_set_bit()
74 void irq_gc_mask_clr_bit(struct irq_data *d) in irq_gc_mask_clr_bit() argument
[all …]
/linux-4.4.14/arch/x86/purgatory/
Dsha256.c50 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local
63 a = state[0]; b = state[1]; c = state[2]; d = state[3]; in sha256_transform()
68 t2 = e0(a) + Maj(a, b, c); d += t1; h = t1 + t2; in sha256_transform()
69 t1 = g + e1(d) + Ch(d, e, f) + 0x71374491 + W[1]; in sha256_transform()
71 t1 = f + e1(c) + Ch(c, d, e) + 0xb5c0fbcf + W[2]; in sha256_transform()
73 t1 = e + e1(b) + Ch(b, c, d) + 0xe9b5dba5 + W[3]; in sha256_transform()
75 t1 = d + e1(a) + Ch(a, b, c) + 0x3956c25b + W[4]; in sha256_transform()
76 t2 = e0(e) + Maj(e, f, g); h += t1; d = t1 + t2; in sha256_transform()
78 t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; in sha256_transform()
80 t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; in sha256_transform()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dl2t.c69 const struct l2t_data *d) in arp_hash() argument
71 return jhash_2words(key, ifindex, 0) & (d->nentries - 1); in arp_hash()
218 static struct l2t_entry *alloc_l2e(struct l2t_data *d) in alloc_l2e() argument
222 if (!atomic_read(&d->nfree)) in alloc_l2e()
226 for (e = d->rover, end = &d->l2tab[d->nentries]; e != end; ++e) in alloc_l2e()
230 for (e = &d->l2tab[1]; atomic_read(&e->refcnt); ++e) ; in alloc_l2e()
232 d->rover = e + 1; in alloc_l2e()
233 atomic_dec(&d->nfree); in alloc_l2e()
240 int hash = arp_hash(e->addr, e->ifindex, d); in alloc_l2e()
242 for (p = &d->l2tab[hash].first; *p; p = &(*p)->next) in alloc_l2e()
[all …]
/linux-4.4.14/arch/arm/boot/compressed/
Dstring.c12 unsigned char *d = (unsigned char *)__dest, *s = (unsigned char *)__src; in memcpy() local
15 *d++ = *s++; in memcpy()
16 *d++ = *s++; in memcpy()
17 *d++ = *s++; in memcpy()
18 *d++ = *s++; in memcpy()
19 *d++ = *s++; in memcpy()
20 *d++ = *s++; in memcpy()
21 *d++ = *s++; in memcpy()
22 *d++ = *s++; in memcpy()
26 *d++ = *s++; in memcpy()
[all …]
/linux-4.4.14/drivers/media/usb/pwc/
Dpwc-dec23.c366 unsigned char *d = dst; in copy_image_block_Y() local
368 *d++ = cm[c[0] >> scalebits]; in copy_image_block_Y()
369 *d++ = cm[c[1] >> scalebits]; in copy_image_block_Y()
370 *d++ = cm[c[2] >> scalebits]; in copy_image_block_Y()
371 *d++ = cm[c[3] >> scalebits]; in copy_image_block_Y()
373 d = dst + bytes_per_line; in copy_image_block_Y()
374 *d++ = cm[c[4] >> scalebits]; in copy_image_block_Y()
375 *d++ = cm[c[5] >> scalebits]; in copy_image_block_Y()
376 *d++ = cm[c[6] >> scalebits]; in copy_image_block_Y()
377 *d++ = cm[c[7] >> scalebits]; in copy_image_block_Y()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/timer/
Dnv40.c33 u32 n, d; in nv40_timer_init() local
36 d = 1000000 / 32; in nv40_timer_init()
41 d = nvkm_rd32(device, NV04_PTIMER_DENOMINATOR); in nv40_timer_init()
42 if (!n || !d) { in nv40_timer_init()
44 d = 1; in nv40_timer_init()
50 while (((n % 5) == 0) && ((d % 5) == 0)) { in nv40_timer_init()
52 d /= 5; in nv40_timer_init()
55 while (((n % 2) == 0) && ((d % 2) == 0)) { in nv40_timer_init()
57 d /= 2; in nv40_timer_init()
60 while (n > 0xffff || d > 0xffff) { in nv40_timer_init()
[all …]
Dnv41.c33 u32 m = 1, n, d; in nv41_timer_init() local
36 d = 1000000 / 32; in nv41_timer_init()
39 while (n < (d * 2)) { in nv41_timer_init()
45 while (((n % 5) == 0) && ((d % 5) == 0)) { in nv41_timer_init()
47 d /= 5; in nv41_timer_init()
50 while (((n % 2) == 0) && ((d % 2) == 0)) { in nv41_timer_init()
52 d /= 2; in nv41_timer_init()
55 while (n > 0xffff || d > 0xffff) { in nv41_timer_init()
57 d >>= 1; in nv41_timer_init()
63 nvkm_debug(subdev, "denominator : %08x\n", d); in nv41_timer_init()
[all …]
Dnv04.c96 u32 n, d; in nv04_timer_init() local
99 d = 1000000 / 32; in nv04_timer_init()
104 d = nvkm_rd32(device, NV04_PTIMER_DENOMINATOR); in nv04_timer_init()
105 if (!n || !d) { in nv04_timer_init()
107 d = 1; in nv04_timer_init()
113 while (((n % 5) == 0) && ((d % 5) == 0)) { in nv04_timer_init()
115 d /= 5; in nv04_timer_init()
118 while (((n % 2) == 0) && ((d % 2) == 0)) { in nv04_timer_init()
120 d /= 2; in nv04_timer_init()
123 while (n > 0xffff || d > 0xffff) { in nv04_timer_init()
[all …]
/linux-4.4.14/scripts/mod/
Dsumversion.c67 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument
68 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (uint32_t)0x5A827999,s)) argument
69 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (uint32_t)0x6ED9EBA1,s)) argument
90 uint32_t a, b, c, d; in md4_transform() local
95 d = hash[3]; in md4_transform()
97 ROUND1(a, b, c, d, in[0], 3); in md4_transform()
98 ROUND1(d, a, b, c, in[1], 7); in md4_transform()
99 ROUND1(c, d, a, b, in[2], 11); in md4_transform()
100 ROUND1(b, c, d, a, in[3], 19); in md4_transform()
101 ROUND1(a, b, c, d, in[4], 3); in md4_transform()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dl2t.c72 static inline void l2t_hold(struct l2t_data *d, struct l2t_entry *e) in l2t_hold() argument
75 atomic_dec(&d->nfree); in l2t_hold()
88 static inline unsigned int arp_hash(struct l2t_data *d, const u32 *key, in arp_hash() argument
91 unsigned int l2t_size_half = d->l2t_size / 2; in arp_hash()
96 static inline unsigned int ipv6_hash(struct l2t_data *d, const u32 *key, in ipv6_hash() argument
99 unsigned int l2t_size_half = d->l2t_size / 2; in ipv6_hash()
106 static unsigned int addr_hash(struct l2t_data *d, const u32 *addr, in addr_hash() argument
109 return addr_len == 4 ? arp_hash(d, addr, ifindex) : in addr_hash()
110 ipv6_hash(d, addr, ifindex); in addr_hash()
142 struct l2t_data *d = adap->l2t; in write_l2e() local
[all …]
/linux-4.4.14/arch/cris/boot/compressed/
Dhead_v10.S29 cmp.d RAM_INIT_MAGIC, $r8 ; Already initialized?
55 move.d 0x40800000, $sp
62 basse: move.d $pc, $r5
63 and.d 0x7fffffff, $r5 ; strip any non-cache bit
64 subq 2, $r5 ; compensate for the move.d $pc instr
65 move.d $r5, $r0 ; save for later - flash address of 'basse'
66 add.d _edata, $r5
67 sub.d basse, $r5 ; $r5 = flash address of '_edata'
71 move.d basse, $r1 ; destination
72 move.d _edata, $r2 ; end destination
[all …]
/linux-4.4.14/arch/sparc/include/asm/
Dio_32.h9 #define memset_io(d,c,sz) _memset_io(d,c,sz) argument
10 #define memcpy_fromio(d,s,sz) _memcpy_fromio(d,s,sz) argument
11 #define memcpy_toio(d,s,sz) _memcpy_toio(d,s,sz) argument
18 volatile void __iomem *d = dst; in _memset_io() local
21 writeb(c, d); in _memset_io()
22 d++; in _memset_io()
29 char *d = dst; in _memcpy_fromio() local
33 *d++ = tmp; in _memcpy_fromio()
42 volatile void __iomem *d = dst; in _memcpy_toio() local
46 writeb(tmp, d); in _memcpy_toio()
[all …]
/linux-4.4.14/arch/powerpc/crypto/
Dmd5-asm.S69 #define R_00_15(a, b, c, d, w0, w1, p, q, off, k0h, k0l, k1h, k1l) \ argument
73 andc rT1,d,b; /* 1: f' = ~b and d */ \
83 add d,d,w1; /* 2: a = a + wk */ \
88 add d,d,rT0; /* 2: a = a + f */ \
90 rotrwi d,d,q; /* 2: a = a rotl x */ \
91 add d,d,a; /* 2: a = a + b */
93 #define R_16_31(a, b, c, d, w0, w1, p, q, k0h, k0l, k1h, k1l) \ argument
94 andc rT0,c,d; /* 1: f = c and ~d */ \
95 and rT1,b,d; /* 1: f' = b and d */ \
106 add d,d,w1; /* 2: a = a + wk */ \
[all …]
Daes-tab-4k.S30 #define R(a, b, c, d) \ argument
31 0x##a##b##c##d, 0x##d##a##b##c, 0x##c##d##a##b, 0x##b##c##d##a
39 .long R(ee, 77, 77, 99), R(f6, 7b, 7b, 8d)
40 .long R(ff, f2, f2, 0d), R(d6, 6b, 6b, bd)
43 .long R(ce, 67, 67, a9), R(56, 2b, 2b, 7d)
45 .long R(4d, ab, ab, e6), R(ec, 76, 76, 9a)
46 .long R(8f, ca, ca, 45), R(1f, 82, 82, 9d)
47 .long R(89, c9, c9, 40), R(fa, 7d, 7d, 87)
55 .long R(3d, 93, 93, ae), R(4c, 26, 26, 6a)
63 .long R(46, 23, 23, 65), R(9d, c3, c3, 5e)
[all …]
/linux-4.4.14/fs/quota/
Dquota_v2.c182 struct v2r0_disk_dqblk *d = dp, empty; in v2r0_disk2memdqb() local
185 m->dqb_ihardlimit = le32_to_cpu(d->dqb_ihardlimit); in v2r0_disk2memdqb()
186 m->dqb_isoftlimit = le32_to_cpu(d->dqb_isoftlimit); in v2r0_disk2memdqb()
187 m->dqb_curinodes = le32_to_cpu(d->dqb_curinodes); in v2r0_disk2memdqb()
188 m->dqb_itime = le64_to_cpu(d->dqb_itime); in v2r0_disk2memdqb()
189 m->dqb_bhardlimit = v2_qbtos(le32_to_cpu(d->dqb_bhardlimit)); in v2r0_disk2memdqb()
190 m->dqb_bsoftlimit = v2_qbtos(le32_to_cpu(d->dqb_bsoftlimit)); in v2r0_disk2memdqb()
191 m->dqb_curspace = le64_to_cpu(d->dqb_curspace); in v2r0_disk2memdqb()
192 m->dqb_btime = le64_to_cpu(d->dqb_btime); in v2r0_disk2memdqb()
202 struct v2r0_disk_dqblk *d = dp; in v2r0_mem2diskdqb() local
[all …]
/linux-4.4.14/tools/lguest/
Dlguest.c264 #define bad_driver(d, fmt, ...) \ argument
265 errx(1, "%s: bad driver: " fmt, (d)->name, ## __VA_ARGS__)
282 static void iov_consume(struct device *d, in iov_consume() argument
301 bad_driver(d, "iovec too short!"); in iov_consume()
637 static void *_check_pointer(struct device *d, in _check_pointer() argument
646 bad_driver(d, "%s:%i: Invalid address %#lx", in _check_pointer()
655 #define check_pointer(d,addr,size) _check_pointer(d, addr, size, __LINE__) argument
662 static unsigned next_desc(struct device *d, struct vring_desc *desc, in next_desc() argument
677 bad_driver(d, "Desc next is %u", next); in next_desc()
1195 struct device *d = devices.pci[i]; in cleanup_devices() local
[all …]
/linux-4.4.14/drivers/net/bonding/
Dbond_sysfs.c158 static ssize_t bonding_sysfs_store_option(struct device *d, in bonding_sysfs_store_option() argument
162 struct bonding *bond = to_bond(d); in bonding_sysfs_store_option()
177 static ssize_t bonding_show_slaves(struct device *d, in bonding_show_slaves() argument
180 struct bonding *bond = to_bond(d); in bonding_show_slaves()
210 static ssize_t bonding_show_mode(struct device *d, in bonding_show_mode() argument
213 struct bonding *bond = to_bond(d); in bonding_show_mode()
224 static ssize_t bonding_show_xmit_hash(struct device *d, in bonding_show_xmit_hash() argument
228 struct bonding *bond = to_bond(d); in bonding_show_xmit_hash()
239 static ssize_t bonding_show_arp_validate(struct device *d, in bonding_show_arp_validate() argument
243 struct bonding *bond = to_bond(d); in bonding_show_arp_validate()
[all …]
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dsb1250-mac.c155 #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \ argument
156 (d)->sbdma_dscrtable : (d)->f+1)
283 static void sbdma_initctx(struct sbmacdma *d, struct sbmac_softc *s, int chan,
285 static void sbdma_channel_start(struct sbmacdma *d, int rxtx);
286 static int sbdma_add_rcvbuffer(struct sbmac_softc *sc, struct sbmacdma *d,
288 static int sbdma_add_txbuffer(struct sbmacdma *d, struct sk_buff *m);
289 static void sbdma_emptyring(struct sbmacdma *d);
290 static void sbdma_fillring(struct sbmac_softc *sc, struct sbmacdma *d);
291 static int sbdma_rx_process(struct sbmac_softc *sc, struct sbmacdma *d,
293 static void sbdma_tx_process(struct sbmac_softc *sc, struct sbmacdma *d,
[all …]
/linux-4.4.14/include/net/bluetooth/
Drfcomm.h196 void (*data_ready)(struct rfcomm_dlc *d, struct sk_buff *skb);
197 void (*state_change)(struct rfcomm_dlc *d, int err);
198 void (*modem_status)(struct rfcomm_dlc *d, u8 v24_sig);
234 void rfcomm_dlc_free(struct rfcomm_dlc *d);
235 int rfcomm_dlc_open(struct rfcomm_dlc *d, bdaddr_t *src, bdaddr_t *dst,
237 int rfcomm_dlc_close(struct rfcomm_dlc *d, int reason);
238 int rfcomm_dlc_send(struct rfcomm_dlc *d, struct sk_buff *skb);
239 void rfcomm_dlc_send_noerror(struct rfcomm_dlc *d, struct sk_buff *skb);
240 int rfcomm_dlc_set_modem_status(struct rfcomm_dlc *d, u8 v24_sig);
241 int rfcomm_dlc_get_modem_status(struct rfcomm_dlc *d, u8 *v24_sig);
[all …]
/linux-4.4.14/drivers/isdn/hardware/eicon/
Dcapidtmf.c179d) (((d) & 0xffff0000L) ? (((d) & 0xff000000L) ? capidtmf_leading_zeroes_table[(d) >> 24] : 8 … argument
188 long c, d, q0, q1, q2; in capidtmf_goertzel_loop() local
194 d = coeffs[i] >> 1; in capidtmf_goertzel_loop()
195 c = d << 1; in capidtmf_goertzel_loop()
200 … q0 = sample[j] - q2 + (c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15); in capidtmf_goertzel_loop()
208 d = -d; in capidtmf_goertzel_loop()
211 …q0 = sample[j] - q2 - ((c * (q1 >> 16)) + (((dword)(((dword) d) * ((dword)(q1 & 0xffff)))) >> 15)); in capidtmf_goertzel_loop()
252 long d, e, q1, q2, lo, mid, hi; in capidtmf_goertzel_result() local
259 d = coeffs[i] >> 1; in capidtmf_goertzel_result()
260 if (d >= 0) in capidtmf_goertzel_result()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/
Ddevice.h213 #define nvkm_rd08(d,a) ioread8((d)->pri + (a)) argument
214 #define nvkm_rd16(d,a) ioread16_native((d)->pri + (a)) argument
215 #define nvkm_rd32(d,a) ioread32_native((d)->pri + (a)) argument
216 #define nvkm_wr08(d,a,v) iowrite8((v), (d)->pri + (a)) argument
217 #define nvkm_wr16(d,a,v) iowrite16_native((v), (d)->pri + (a)) argument
218 #define nvkm_wr32(d,a,v) iowrite32_native((v), (d)->pri + (a)) argument
219 #define nvkm_mask(d,a,m,v) ({ \ argument
220 struct nvkm_device *_device = (d); \
237 #define nvdev_printk_(d,l,p,f,a...) do { \ argument
238 struct nvkm_device *_device = (d); \
[all …]
/linux-4.4.14/arch/sparc/crypto/
Dopcodes.h29 #define AES_EROUND01(a,b,c,d) \ argument
30 .word (F3F(2, 0x19, 0)|RS1(a)|RS2(b)|RS3(c)|RD(d));
31 #define AES_EROUND23(a,b,c,d) \ argument
32 .word (F3F(2, 0x19, 1)|RS1(a)|RS2(b)|RS3(c)|RD(d));
33 #define AES_DROUND01(a,b,c,d) \ argument
34 .word (F3F(2, 0x19, 2)|RS1(a)|RS2(b)|RS3(c)|RD(d));
35 #define AES_DROUND23(a,b,c,d) \ argument
36 .word (F3F(2, 0x19, 3)|RS1(a)|RS2(b)|RS3(c)|RD(d));
37 #define AES_EROUND01_L(a,b,c,d) \ argument
38 .word (F3F(2, 0x19, 4)|RS1(a)|RS2(b)|RS3(c)|RD(d));
[all …]
/linux-4.4.14/drivers/net/ethernet/amd/
Dhplance.c49 static int hplance_init_one(struct dio_dev *d, const struct dio_device_id *ent);
50 static void hplance_init(struct net_device *dev, struct dio_dev *d);
51 static void hplance_remove_one(struct dio_dev *d);
84 static int hplance_init_one(struct dio_dev *d, const struct dio_device_id *ent) in hplance_init_one() argument
94 if (!request_mem_region(dio_resource_start(d), in hplance_init_one()
95 dio_resource_len(d), d->name)) in hplance_init_one()
98 hplance_init(dev, d); in hplance_init_one()
103 dio_set_drvdata(d, dev); in hplance_init_one()
106 dev->name, d->name, d->scode, dev->dev_addr, d->ipl); in hplance_init_one()
111 release_mem_region(dio_resource_start(d), dio_resource_len(d)); in hplance_init_one()
[all …]
/linux-4.4.14/arch/parisc/include/asm/
Dparisc-device.h42 #define to_parisc_device(d) container_of(d, struct parisc_device, dev) argument
43 #define to_parisc_driver(d) container_of(d, struct parisc_driver, drv) argument
44 #define parisc_parent(d) to_parisc_device(d->dev.parent) argument
46 static inline const char *parisc_pathname(struct parisc_device *d) in parisc_pathname() argument
48 return dev_name(&d->dev); in parisc_pathname()
52 parisc_set_drvdata(struct parisc_device *d, void *p) in parisc_set_drvdata() argument
54 dev_set_drvdata(&d->dev, p); in parisc_set_drvdata()
58 parisc_get_drvdata(struct parisc_device *d) in parisc_get_drvdata() argument
60 return dev_get_drvdata(&d->dev); in parisc_get_drvdata()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_hwmon.c39 nouveau_hwmon_show_temp(struct device *d, struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp() argument
41 struct drm_device *dev = dev_get_drvdata(d); in nouveau_hwmon_show_temp()
55 nouveau_hwmon_show_temp1_auto_point1_pwm(struct device *d, in nouveau_hwmon_show_temp1_auto_point1_pwm() argument
64 nouveau_hwmon_temp1_auto_point1_temp(struct device *d, in nouveau_hwmon_temp1_auto_point1_temp() argument
67 struct drm_device *dev = dev_get_drvdata(d); in nouveau_hwmon_temp1_auto_point1_temp()
75 nouveau_hwmon_set_temp1_auto_point1_temp(struct device *d, in nouveau_hwmon_set_temp1_auto_point1_temp() argument
79 struct drm_device *dev = dev_get_drvdata(d); in nouveau_hwmon_set_temp1_auto_point1_temp()
97 nouveau_hwmon_temp1_auto_point1_temp_hyst(struct device *d, in nouveau_hwmon_temp1_auto_point1_temp_hyst() argument
100 struct drm_device *dev = dev_get_drvdata(d); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
108 nouveau_hwmon_set_temp1_auto_point1_temp_hyst(struct device *d, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst() argument
[all …]
/linux-4.4.14/drivers/pinctrl/freescale/
Dpinctrl-mxs.c38 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_groups_count() local
40 return d->soc->ngroups; in mxs_get_groups_count()
46 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_group_name() local
48 return d->soc->groups[group].name; in mxs_get_group_name()
54 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_get_group_pins() local
56 *pins = d->soc->groups[group].pins; in mxs_get_group_pins()
57 *num_pins = d->soc->groups[group].npins; in mxs_get_group_pins()
172 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_pinctrl_get_funcs_count() local
174 return d->soc->nfunctions; in mxs_pinctrl_get_funcs_count()
180 struct mxs_pinctrl_data *d = pinctrl_dev_get_drvdata(pctldev); in mxs_pinctrl_get_func_name() local
[all …]
/linux-4.4.14/fs/nfs/blocklayout/
Ddev.c30 bl_free_deviceid_node(struct nfs4_deviceid_node *d) in bl_free_deviceid_node() argument
33 container_of(d, struct pnfs_block_dev, node); in bl_free_deviceid_node()
188 bl_parse_deviceid(struct nfs_server *server, struct pnfs_block_dev *d,
193 bl_parse_simple(struct nfs_server *server, struct pnfs_block_dev *d, in bl_parse_simple() argument
203 d->bdev = blkdev_get_by_dev(dev, FMODE_READ | FMODE_WRITE, NULL); in bl_parse_simple()
204 if (IS_ERR(d->bdev)) { in bl_parse_simple()
206 MAJOR(dev), MINOR(dev), PTR_ERR(d->bdev)); in bl_parse_simple()
207 return PTR_ERR(d->bdev); in bl_parse_simple()
211 d->len = i_size_read(d->bdev->bd_inode); in bl_parse_simple()
212 d->map = bl_map_simple; in bl_parse_simple()
[all …]
/linux-4.4.14/arch/arm/mach-rpc/
Dirq.c10 static void iomd_ack_irq_a(struct irq_data *d) in iomd_ack_irq_a() argument
14 mask = 1 << d->irq; in iomd_ack_irq_a()
20 static void iomd_mask_irq_a(struct irq_data *d) in iomd_mask_irq_a() argument
24 mask = 1 << d->irq; in iomd_mask_irq_a()
29 static void iomd_unmask_irq_a(struct irq_data *d) in iomd_unmask_irq_a() argument
33 mask = 1 << d->irq; in iomd_unmask_irq_a()
44 static void iomd_mask_irq_b(struct irq_data *d) in iomd_mask_irq_b() argument
48 mask = 1 << (d->irq & 7); in iomd_mask_irq_b()
53 static void iomd_unmask_irq_b(struct irq_data *d) in iomd_unmask_irq_b() argument
57 mask = 1 << (d->irq & 7); in iomd_unmask_irq_b()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/xics/
Dics-opal.c46 static void ics_opal_unmask_irq(struct irq_data *d) in ics_opal_unmask_irq() argument
48 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_opal_unmask_irq()
52 pr_devel("ics-hal: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_opal_unmask_irq()
57 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq()
64 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq()
67 static unsigned int ics_opal_startup(struct irq_data *d) in ics_opal_startup() argument
75 if (irq_data_get_msi_desc(d)) in ics_opal_startup()
76 pci_msi_unmask_irq(d); in ics_opal_startup()
80 ics_opal_unmask_irq(d); in ics_opal_startup()
99 static void ics_opal_mask_irq(struct irq_data *d) in ics_opal_mask_irq() argument
[all …]
Dics-rtas.c39 static void ics_rtas_unmask_irq(struct irq_data *d) in ics_rtas_unmask_irq() argument
41 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_rtas_unmask_irq()
45 pr_devel("xics: unmask virq %d [hw 0x%x]\n", d->irq, hw_irq); in ics_rtas_unmask_irq()
50 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_rtas_unmask_irq()
70 static unsigned int ics_rtas_startup(struct irq_data *d) in ics_rtas_startup() argument
78 if (irq_data_get_msi_desc(d)) in ics_rtas_startup()
79 pci_msi_unmask_irq(d); in ics_rtas_startup()
82 ics_rtas_unmask_irq(d); in ics_rtas_startup()
110 static void ics_rtas_mask_irq(struct irq_data *d) in ics_rtas_mask_irq() argument
112 unsigned int hw_irq = (unsigned int)irqd_to_hwirq(d); in ics_rtas_mask_irq()
[all …]
/linux-4.4.14/drivers/parisc/
Dlba_pci.c110 #define LBA_SKIP_PROBE(d) ((d)->flags & LBA_FLAG_SKIP_PROBE) argument
114 #define LBA_DEV(d) ((struct lba_device *) (d)) argument
160 lba_dump_res(struct resource *r, int d) in lba_dump_res() argument
168 for (i = d; i ; --i) printk(" "); in lba_dump_res()
171 lba_dump_res(r->child, d+2); in lba_dump_res()
172 lba_dump_res(r->sibling, d); in lba_dump_res()
190 static int lba_device_present(u8 bus, u8 dfn, struct lba_device *d) in lba_device_present() argument
192 u8 first_bus = d->hba.hba_bus->busn_res.start; in lba_device_present()
193 u8 last_sub_bus = d->hba.hba_bus->busn_res.end; in lba_device_present()
206 #define LBA_CFG_SETUP(d, tok) { \ argument
[all …]
/linux-4.4.14/arch/unicore32/kernel/
Dirq.c44 static int puv3_gpio_type(struct irq_data *d, unsigned int type) in puv3_gpio_type() argument
48 if (d->irq < IRQ_GPIOHIGH) in puv3_gpio_type()
49 mask = 1 << d->irq; in puv3_gpio_type()
51 mask = GPIO_MASK(d->irq); in puv3_gpio_type()
77 static void puv3_low_gpio_ack(struct irq_data *d) in puv3_low_gpio_ack() argument
79 writel((1 << d->irq), GPIO_GEDR); in puv3_low_gpio_ack()
82 static void puv3_low_gpio_mask(struct irq_data *d) in puv3_low_gpio_mask() argument
84 writel(readl(INTC_ICMR) & ~(1 << d->irq), INTC_ICMR); in puv3_low_gpio_mask()
87 static void puv3_low_gpio_unmask(struct irq_data *d) in puv3_low_gpio_unmask() argument
89 writel(readl(INTC_ICMR) | (1 << d->irq), INTC_ICMR); in puv3_low_gpio_unmask()
[all …]
/linux-4.4.14/arch/arm/mach-iop13xx/
Dirq.c126 iop13xx_irq_mask0 (struct irq_data *d) in iop13xx_irq_mask0() argument
128 write_intctl_0(read_intctl_0() & ~(1 << (d->irq - 0))); in iop13xx_irq_mask0()
132 iop13xx_irq_mask1 (struct irq_data *d) in iop13xx_irq_mask1() argument
134 write_intctl_1(read_intctl_1() & ~(1 << (d->irq - 32))); in iop13xx_irq_mask1()
138 iop13xx_irq_mask2 (struct irq_data *d) in iop13xx_irq_mask2() argument
140 write_intctl_2(read_intctl_2() & ~(1 << (d->irq - 64))); in iop13xx_irq_mask2()
144 iop13xx_irq_mask3 (struct irq_data *d) in iop13xx_irq_mask3() argument
146 write_intctl_3(read_intctl_3() & ~(1 << (d->irq - 96))); in iop13xx_irq_mask3()
150 iop13xx_irq_unmask0(struct irq_data *d) in iop13xx_irq_unmask0() argument
152 write_intctl_0(read_intctl_0() | (1 << (d->irq - 0))); in iop13xx_irq_unmask0()
[all …]
/linux-4.4.14/lib/mpi/
Dmpiutil.c39 a->d = mpi_alloc_limb_space(nlimbs); in mpi_alloc()
40 if (!a->d) { in mpi_alloc()
45 a->d = NULL; in mpi_alloc()
77 mpi_free_limb_space(a->d); in mpi_assign_limb_space()
78 a->d = ap; in mpi_assign_limb_space()
93 if (a->d) { in mpi_resize()
97 memcpy(p, a->d, a->alloced * sizeof(mpi_limb_t)); in mpi_resize()
98 kzfree(a->d); in mpi_resize()
99 a->d = p; in mpi_resize()
101 a->d = kzalloc(nlimbs * sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
[all …]
Dmpi-internal.h76 #define MPN_COPY(d, s, n) \ argument
80 (d)[_i] = (s)[_i]; \
83 #define MPN_COPY_INCR(d, s, n) \ argument
87 (d)[_i] = (s)[_i]; \
90 #define MPN_COPY_DECR(d, s, n) \ argument
94 (d)[_i] = (s)[_i]; \
98 #define MPN_ZERO(d, n) \ argument
102 (d)[_i] = 0; \
105 #define MPN_NORMALIZE(d, n) \ argument
108 if ((d)[(n)-1]) \
[all …]
/linux-4.4.14/arch/mips/sgi-ip32/
Dip32-irq.c130 static inline void crime_enable_irq(struct irq_data *d) in crime_enable_irq() argument
132 unsigned int bit = d->irq - CRIME_IRQ_BASE; in crime_enable_irq()
138 static inline void crime_disable_irq(struct irq_data *d) in crime_disable_irq() argument
140 unsigned int bit = d->irq - CRIME_IRQ_BASE; in crime_disable_irq()
153 static void crime_edge_mask_and_ack_irq(struct irq_data *d) in crime_edge_mask_and_ack_irq() argument
155 unsigned int bit = d->irq - CRIME_IRQ_BASE; in crime_edge_mask_and_ack_irq()
163 crime_disable_irq(d); in crime_edge_mask_and_ack_irq()
182 static void enable_macepci_irq(struct irq_data *d) in enable_macepci_irq() argument
184 macepci_mask |= MACEPCI_CONTROL_INT(d->irq - MACEPCI_SCSI0_IRQ); in enable_macepci_irq()
186 crime_mask |= 1 << (d->irq - CRIME_IRQ_BASE); in enable_macepci_irq()
[all …]
/linux-4.4.14/drivers/media/platform/s5p-g2d/
Dg2d-hw.c18 #define w(x, a) writel((x), d->regs + (a))
19 #define r(a) readl(d->regs + (a))
22 void g2d_reset(struct g2d_dev *d) in g2d_reset() argument
27 void g2d_set_src_size(struct g2d_dev *d, struct g2d_frame *f) in g2d_set_src_size() argument
47 void g2d_set_src_addr(struct g2d_dev *d, dma_addr_t a) in g2d_set_src_addr() argument
52 void g2d_set_dst_size(struct g2d_dev *d, struct g2d_frame *f) in g2d_set_dst_size() argument
72 void g2d_set_dst_addr(struct g2d_dev *d, dma_addr_t a) in g2d_set_dst_addr() argument
77 void g2d_set_rop4(struct g2d_dev *d, u32 r) in g2d_set_rop4() argument
82 void g2d_set_flip(struct g2d_dev *d, u32 r) in g2d_set_flip() argument
87 void g2d_set_v41_stretch(struct g2d_dev *d, struct g2d_frame *src, in g2d_set_v41_stretch() argument
[all …]
Dg2d.h80 void g2d_reset(struct g2d_dev *d);
81 void g2d_set_src_size(struct g2d_dev *d, struct g2d_frame *f);
82 void g2d_set_src_addr(struct g2d_dev *d, dma_addr_t a);
83 void g2d_set_dst_size(struct g2d_dev *d, struct g2d_frame *f);
84 void g2d_set_dst_addr(struct g2d_dev *d, dma_addr_t a);
85 void g2d_start(struct g2d_dev *d);
86 void g2d_clear_int(struct g2d_dev *d);
87 void g2d_set_rop4(struct g2d_dev *d, u32 r);
88 void g2d_set_flip(struct g2d_dev *d, u32 r);
89 void g2d_set_v41_stretch(struct g2d_dev *d,
[all …]
/linux-4.4.14/arch/arm/mach-lpc32xx/
Dirq.c210 static void lpc32xx_mask_irq(struct irq_data *d) in lpc32xx_mask_irq() argument
214 get_controller(d->hwirq, &ctrl, &mask); in lpc32xx_mask_irq()
220 static void lpc32xx_unmask_irq(struct irq_data *d) in lpc32xx_unmask_irq() argument
224 get_controller(d->hwirq, &ctrl, &mask); in lpc32xx_unmask_irq()
230 static void lpc32xx_ack_irq(struct irq_data *d) in lpc32xx_ack_irq() argument
234 get_controller(d->hwirq, &ctrl, &mask); in lpc32xx_ack_irq()
239 if (lpc32xx_events[d->hwirq].mask != 0) in lpc32xx_ack_irq()
240 __raw_writel(lpc32xx_events[d->hwirq].mask, in lpc32xx_ack_irq()
241 lpc32xx_events[d->hwirq].event_group->rawstat_reg); in lpc32xx_ack_irq()
280 static int lpc32xx_set_irq_type(struct irq_data *d, unsigned int type) in lpc32xx_set_irq_type() argument
[all …]
/linux-4.4.14/drivers/media/usb/pvrusb2/
Dpvrusb2-util.h23 #define PVR2_DECOMPOSE_LE(t,i,d) \ argument
25 (t)[i] = (d) & 0xff;\
26 (t)[i+1] = ((d) >> 8) & 0xff;\
27 (t)[i+2] = ((d) >> 16) & 0xff;\
28 (t)[i+3] = ((d) >> 24) & 0xff;\
31 #define PVR2_DECOMPOSE_BE(t,i,d) \ argument
33 (t)[i+3] = (d) & 0xff;\
34 (t)[i+2] = ((d) >> 8) & 0xff;\
35 (t)[i+1] = ((d) >> 16) & 0xff;\
36 (t)[i] = ((d) >> 24) & 0xff;\
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlovsub_dev.c93 static int lovsub_device_init(const struct lu_env *env, struct lu_device *d, in lovsub_device_init() argument
96 struct lovsub_device *lsd = lu2lovsub_dev(d); in lovsub_device_init()
100 next->ld_site = d->ld_site; in lovsub_device_init()
116 struct lu_device *d) in lovsub_device_fini() argument
121 lsd = lu2lovsub_dev(d); in lovsub_device_fini()
129 struct lu_device *d) in lovsub_device_free() argument
131 struct lovsub_device *lsd = lu2lovsub_dev(d); in lovsub_device_free()
134 if (atomic_read(&d->ld_ref) && d->ld_site) { in lovsub_device_free()
136 lu_site_print(env, d->ld_site, &msgdata, lu_cdebug_printer); in lovsub_device_free()
138 cl_device_fini(lu2cl_dev(d)); in lovsub_device_free()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dtimer.h39 #define nvkm_nsec(d,n,cond...) ({ \ argument
40 struct nvkm_device *_device = (d); \
59 #define nvkm_usec(d,u,cond...) nvkm_nsec((d), (u) * 1000, ##cond) argument
60 #define nvkm_msec(d,m,cond...) nvkm_usec((d), (m) * 1000, ##cond) argument
62 #define nvkm_wait_nsec(d,n,addr,mask,data) \ argument
63 nvkm_nsec(d, n, \
64 if ((nvkm_rd32(d, (addr)) & (mask)) == (data)) \
67 #define nvkm_wait_usec(d,u,addr,mask,data) \ argument
68 nvkm_wait_nsec((d), (u) * 1000, (addr), (mask), (data))
69 #define nvkm_wait_msec(d,m,addr,mask,data) \ argument
[all …]
/linux-4.4.14/arch/tile/kernel/
Dirq.c150 static void tile_irq_chip_enable(struct irq_data *d) in tile_irq_chip_enable() argument
152 get_cpu_var(irq_disable_mask) &= ~(1UL << d->irq); in tile_irq_chip_enable()
154 unmask_irqs(1UL << d->irq); in tile_irq_chip_enable()
164 static void tile_irq_chip_disable(struct irq_data *d) in tile_irq_chip_disable() argument
166 get_cpu_var(irq_disable_mask) |= (1UL << d->irq); in tile_irq_chip_disable()
167 mask_irqs(1UL << d->irq); in tile_irq_chip_disable()
172 static void tile_irq_chip_mask(struct irq_data *d) in tile_irq_chip_mask() argument
174 mask_irqs(1UL << d->irq); in tile_irq_chip_mask()
178 static void tile_irq_chip_unmask(struct irq_data *d) in tile_irq_chip_unmask() argument
180 unmask_irqs(1UL << d->irq); in tile_irq_chip_unmask()
[all …]
/linux-4.4.14/arch/powerpc/sysdev/
Dmpc8xx_pic.c23 static inline unsigned long mpc8xx_irqd_to_bit(struct irq_data *d) in mpc8xx_irqd_to_bit() argument
25 return 0x80000000 >> irqd_to_hwirq(d); in mpc8xx_irqd_to_bit()
28 static void mpc8xx_unmask_irq(struct irq_data *d) in mpc8xx_unmask_irq() argument
30 mpc8xx_cached_irq_mask |= mpc8xx_irqd_to_bit(d); in mpc8xx_unmask_irq()
34 static void mpc8xx_mask_irq(struct irq_data *d) in mpc8xx_mask_irq() argument
36 mpc8xx_cached_irq_mask &= ~mpc8xx_irqd_to_bit(d); in mpc8xx_mask_irq()
40 static void mpc8xx_ack(struct irq_data *d) in mpc8xx_ack() argument
42 out_be32(&siu_reg->sc_sipend, mpc8xx_irqd_to_bit(d)); in mpc8xx_ack()
45 static void mpc8xx_end_irq(struct irq_data *d) in mpc8xx_end_irq() argument
47 mpc8xx_cached_irq_mask |= mpc8xx_irqd_to_bit(d); in mpc8xx_end_irq()
[all …]
Di8259.c80 static void i8259_mask_and_ack_irq(struct irq_data *d) in i8259_mask_and_ack_irq() argument
85 if (d->irq > 7) { in i8259_mask_and_ack_irq()
86 cached_A1 |= 1 << (d->irq-8); in i8259_mask_and_ack_irq()
92 cached_21 |= 1 << d->irq; in i8259_mask_and_ack_irq()
106 static void i8259_mask_irq(struct irq_data *d) in i8259_mask_irq() argument
110 pr_debug("i8259_mask_irq(%d)\n", d->irq); in i8259_mask_irq()
113 if (d->irq < 8) in i8259_mask_irq()
114 cached_21 |= 1 << d->irq; in i8259_mask_irq()
116 cached_A1 |= 1 << (d->irq-8); in i8259_mask_irq()
117 i8259_set_irq_mask(d->irq); in i8259_mask_irq()
[all …]
/linux-4.4.14/drivers/clk/tegra/
Dcvb.c64 static int build_opp_table(const struct cvb_table *d, in build_opp_table() argument
71 const struct rail_alignment *align = &d->alignment; in build_opp_table()
73 min_mv = round_voltage(d->min_millivolts, align, UP); in build_opp_table()
74 max_mv = round_voltage(d->max_millivolts, align, DOWN); in build_opp_table()
77 table = &d->cvb_table[i]; in build_opp_table()
82 speedo_value, d->speedo_scale, &table->coefficients); in build_opp_table()
83 dfll_mv = round_cvb_voltage(dfll_mv, d->voltage_scale, align); in build_opp_table()
121 const struct cvb_table *d = &cvb_tables[i]; in tegra_cvb_build_opp_table() local
123 if (d->speedo_id != -1 && d->speedo_id != speedo_id) in tegra_cvb_build_opp_table()
125 if (d->process_id != -1 && d->process_id != process_id) in tegra_cvb_build_opp_table()
[all …]
/linux-4.4.14/drivers/net/wan/
Dhostess_sv11.c78 static int hostess_open(struct net_device *d) in hostess_open() argument
80 struct z8530_dev *sv11 = dev_to_sv(d); in hostess_open()
88 err = z8530_sync_open(d, &sv11->chanA); in hostess_open()
91 err = z8530_sync_dma_open(d, &sv11->chanA); in hostess_open()
94 err = z8530_sync_txdma_open(d, &sv11->chanA); in hostess_open()
101 err = hdlc_open(d); in hostess_open()
105 z8530_sync_close(d, &sv11->chanA); in hostess_open()
108 z8530_sync_dma_close(d, &sv11->chanA); in hostess_open()
111 z8530_sync_txdma_close(d, &sv11->chanA); in hostess_open()
122 netif_start_queue(d); in hostess_open()
[all …]
Dsealevel.c80 static int sealevel_open(struct net_device *d) in sealevel_open() argument
82 struct slvl_device *slvl = dev_to_chan(d); in sealevel_open()
92 err = z8530_sync_dma_open(d, slvl->chan); in sealevel_open()
95 err = z8530_sync_open(d, slvl->chan); in sealevel_open()
102 err = hdlc_open(d); in sealevel_open()
106 z8530_sync_dma_close(d, slvl->chan); in sealevel_open()
109 z8530_sync_close(d, slvl->chan); in sealevel_open()
120 netif_start_queue(d); in sealevel_open()
124 static int sealevel_close(struct net_device *d) in sealevel_close() argument
126 struct slvl_device *slvl = dev_to_chan(d); in sealevel_close()
[all …]
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_rtas.c134 struct rtas_token_definition *d, *tmp; in rtas_token_undefine() local
138 list_for_each_entry_safe(d, tmp, &kvm->arch.rtas_tokens, list) { in rtas_token_undefine()
139 if (rtas_name_matches(d->handler->name, name)) { in rtas_token_undefine()
140 list_del(&d->list); in rtas_token_undefine()
141 kfree(d); in rtas_token_undefine()
152 struct rtas_token_definition *d; in rtas_token_define() local
159 list_for_each_entry(d, &kvm->arch.rtas_tokens, list) { in rtas_token_define()
160 if (d->token == token) in rtas_token_define()
176 d = kzalloc(sizeof(*d), GFP_KERNEL); in rtas_token_define()
177 if (!d) in rtas_token_define()
[all …]
/linux-4.4.14/net/can/
Daf_can.c393 struct dev_rcv_lists *d) in find_rcv_list() argument
401 return &d->rx[RX_ERR]; in find_rcv_list()
417 return &d->rx[RX_INV]; in find_rcv_list()
421 return &d->rx[RX_ALL]; in find_rcv_list()
429 return &d->rx_eff[effhash(*can_id)]; in find_rcv_list()
432 return &d->rx_sff[*can_id]; in find_rcv_list()
437 return &d->rx[RX_FIL]; in find_rcv_list()
475 struct dev_rcv_lists *d; in can_rx_register() local
489 d = find_dev_rcv_lists(dev); in can_rx_register()
490 if (d) { in can_rx_register()
[all …]
/linux-4.4.14/arch/powerpc/platforms/52xx/
Dmpc52xx_pic.c158 static void mpc52xx_extirq_mask(struct irq_data *d) in mpc52xx_extirq_mask() argument
160 int l2irq = irqd_to_hwirq(d) & MPC52xx_IRQ_L2_MASK; in mpc52xx_extirq_mask()
164 static void mpc52xx_extirq_unmask(struct irq_data *d) in mpc52xx_extirq_unmask() argument
166 int l2irq = irqd_to_hwirq(d) & MPC52xx_IRQ_L2_MASK; in mpc52xx_extirq_unmask()
170 static void mpc52xx_extirq_ack(struct irq_data *d) in mpc52xx_extirq_ack() argument
172 int l2irq = irqd_to_hwirq(d) & MPC52xx_IRQ_L2_MASK; in mpc52xx_extirq_ack()
176 static int mpc52xx_extirq_set_type(struct irq_data *d, unsigned int flow_type) in mpc52xx_extirq_set_type() argument
179 int l2irq = irqd_to_hwirq(d) & MPC52xx_IRQ_L2_MASK; in mpc52xx_extirq_set_type()
183 (int) irqd_to_hwirq(d), l2irq, flow_type); in mpc52xx_extirq_set_type()
199 irq_set_handler_locked(d, handler); in mpc52xx_extirq_set_type()
[all …]
/linux-4.4.14/arch/mips/pmcs-msp71xx/
Dmsp_irq_per.c50 static inline void unmask_per_irq(struct irq_data *d) in unmask_per_irq() argument
55 *PER_INT_MSK_REG |= (1 << (d->irq - MSP_PER_INTBASE)); in unmask_per_irq()
58 *PER_INT_MSK_REG |= (1 << (d->irq - MSP_PER_INTBASE)); in unmask_per_irq()
63 static inline void mask_per_irq(struct irq_data *d) in mask_per_irq() argument
68 *PER_INT_MSK_REG &= ~(1 << (d->irq - MSP_PER_INTBASE)); in mask_per_irq()
71 *PER_INT_MSK_REG &= ~(1 << (d->irq - MSP_PER_INTBASE)); in mask_per_irq()
76 static inline void msp_per_irq_ack(struct irq_data *d) in msp_per_irq_ack() argument
78 mask_per_irq(d); in msp_per_irq_ack()
84 *PER_INT_STS_REG = (1 << (d->irq - MSP_PER_INTBASE)); in msp_per_irq_ack()
88 static int msp_per_irq_set_affinity(struct irq_data *d, in msp_per_irq_set_affinity() argument
[all …]
/linux-4.4.14/arch/microblaze/kernel/
Dintc.c57 static void intc_enable_or_unmask(struct irq_data *d) in intc_enable_or_unmask() argument
59 unsigned long mask = 1 << d->hwirq; in intc_enable_or_unmask()
61 pr_debug("enable_or_unmask: %ld\n", d->hwirq); in intc_enable_or_unmask()
67 if (irqd_is_level_type(d)) in intc_enable_or_unmask()
73 static void intc_disable_or_mask(struct irq_data *d) in intc_disable_or_mask() argument
75 pr_debug("disable: %ld\n", d->hwirq); in intc_disable_or_mask()
76 write_fn(1 << d->hwirq, intc_baseaddr + CIE); in intc_disable_or_mask()
79 static void intc_ack(struct irq_data *d) in intc_ack() argument
81 pr_debug("ack: %ld\n", d->hwirq); in intc_ack()
82 write_fn(1 << d->hwirq, intc_baseaddr + IAR); in intc_ack()
[all …]
/linux-4.4.14/arch/mips/ar7/
Dirq.c52 static void ar7_unmask_irq(struct irq_data *d) in ar7_unmask_irq() argument
54 writel(1 << ((d->irq - ar7_irq_base) % 32), in ar7_unmask_irq()
55 REG(ESR_OFFSET(d->irq - ar7_irq_base))); in ar7_unmask_irq()
58 static void ar7_mask_irq(struct irq_data *d) in ar7_mask_irq() argument
60 writel(1 << ((d->irq - ar7_irq_base) % 32), in ar7_mask_irq()
61 REG(ECR_OFFSET(d->irq - ar7_irq_base))); in ar7_mask_irq()
64 static void ar7_ack_irq(struct irq_data *d) in ar7_ack_irq() argument
66 writel(1 << ((d->irq - ar7_irq_base) % 32), in ar7_ack_irq()
67 REG(CR_OFFSET(d->irq - ar7_irq_base))); in ar7_ack_irq()
70 static void ar7_unmask_sec_irq(struct irq_data *d) in ar7_unmask_sec_irq() argument
[all …]
/linux-4.4.14/arch/cris/arch-v32/mm/
Dmmu.S30 move.d $acr, [$sp]
34 move.d $r10, [$sp]
45 move.d $sp, $r11 ; regs
50 and.d ~8191, $r10 ; Get faulting page start address
96 move.d $acr, [$sp]
98 move.d 1b, $acr ; Point to refill_count
101 test.d [$acr] ; refill_count == 0 ?
103 move.d $acr, $r1
108 move.d [$r1], $r2 ; Get last_refill_cause
109 cmp.d $r0, $r2 ; rw_mm_cause == last_refill_cause ?
[all …]
/linux-4.4.14/drivers/md/bcache/
Dsuper.c92 sb->d[i] = le64_to_cpu(s->d[i]); in read_super()
174 if (sb->d[i] != sb->first_bucket + i) in read_super()
234 out->d[i] = cpu_to_le64(sb->d[i]); in __write_super()
542 struct bucket_disk *d = p->data; in bch_prio_write() local
543 struct bucket_disk *end = d + prios_per_bucket(ca); in bch_prio_write()
546 b < ca->buckets + ca->sb.nbuckets && d < end; in bch_prio_write()
547 b++, d++) { in bch_prio_write()
548 d->prio = cpu_to_le16(b->prio); in bch_prio_write()
549 d->gen = b->gen; in bch_prio_write()
590 struct bucket_disk *d = p->data + prios_per_bucket(ca), *end = d; in prio_read() local
[all …]
/linux-4.4.14/Documentation/video4linux/
DCARDLIST.cx886 5 -> Leadtek Winfast 2000XP Expert [107d:6611,107d:6613]
9 8 -> Leadtek Winfast DV2000 [107d:6620,107d:6621]
10 … [107d:663b,107d:663c,107d:6632,107d:6630,107d:6638,107d:6631,107
36 35 -> WinFast DTV1000-T [107d:665f]
52 51 -> WinFast DTV2000 H [107d:665e]
62 61 -> Leadtek TV2000 XP Global [107d:6f18,107d:6618,107d:6619]
82 81 -> Leadtek WinFast DTV1800 Hybrid [107d:6654]
83 82 -> WinFast DTV2000 H rev. J [107d:6f2b]
88 87 -> Leadtek WinFast DTV2000 H PLUS [107d:6f42]
89 88 -> Leadtek WinFast DTV1800 H (XC4000) [107d:6f38]
[all …]
/linux-4.4.14/drivers/usb/host/
Disp116x.h346 #define isp116x_delay(h,d) (h)->board->delay( \ argument
347 isp116x_to_hcd(h)->self.controller,d)
350 #define isp116x_delay(h,d) ndelay(d) argument
353 #define isp116x_delay(h,d) do{}while(0) argument
441 #define isp116x_show_reg_log(d,r,s) { \ argument
444 r, isp116x_read_reg32(d, r)); \
447 r, isp116x_read_reg16(d, r)); \
450 #define isp116x_show_reg_seq(d,r,s) { \ argument
453 r, isp116x_read_reg32(d, r)); \
456 r, isp116x_read_reg16(d, r)); \
[all …]
/linux-4.4.14/arch/x86/pci/
Dfixup.c12 static void pci_fixup_i450nx(struct pci_dev *d) in pci_fixup_i450nx() argument
20 dev_warn(&d->dev, "Searching for i450NX host bridges\n"); in pci_fixup_i450nx()
23 pci_read_config_byte(d, reg++, &busno); in pci_fixup_i450nx()
24 pci_read_config_byte(d, reg++, &suba); in pci_fixup_i450nx()
25 pci_read_config_byte(d, reg++, &subb); in pci_fixup_i450nx()
26 dev_dbg(&d->dev, "i450NX PXB %d: %02x/%02x/%02x\n", pxb, busno, in pci_fixup_i450nx()
37 static void pci_fixup_i450gx(struct pci_dev *d) in pci_fixup_i450gx() argument
44 pci_read_config_byte(d, 0x4a, &busno); in pci_fixup_i450gx()
45 dev_info(&d->dev, "i440KX/GX host bridge; secondary bus %02x\n", busno); in pci_fixup_i450gx()
51 static void pci_fixup_umc_ide(struct pci_dev *d) in pci_fixup_umc_ide() argument
[all …]
/linux-4.4.14/arch/blackfin/mach-common/
Dints-priority.c109 void bfin_ack_noop(struct irq_data *d) in bfin_ack_noop() argument
114 static void bfin_core_mask_irq(struct irq_data *d) in bfin_core_mask_irq() argument
116 bfin_irq_flags &= ~(1 << d->irq); in bfin_core_mask_irq()
121 static void bfin_core_unmask_irq(struct irq_data *d) in bfin_core_unmask_irq() argument
123 bfin_irq_flags |= 1 << d->irq; in bfin_core_unmask_irq()
158 static void bfin_internal_mask_irq_chip(struct irq_data *d) in bfin_internal_mask_irq_chip() argument
160 bfin_internal_mask_irq(d->irq); in bfin_internal_mask_irq_chip()
195 static void bfin_internal_unmask_irq_chip(struct irq_data *d) in bfin_internal_unmask_irq_chip() argument
197 bfin_internal_unmask_irq_affinity(d->irq, in bfin_internal_unmask_irq_chip()
198 irq_data_get_affinity_mask(d)); in bfin_internal_unmask_irq_chip()
[all …]
/linux-4.4.14/sound/oss/
Dswarm_cs4297a.c190 #define SERDMA_NEXTBUF(d,f) (((d)->f+1) % (d)->ringsz) argument
738 serdma_t *d = &s->dma_dac; in serdma_reg_access() local
759 if (d->hwptr != d->swptr) { in serdma_reg_access()
761 d->hwptr, d->swptr); in serdma_reg_access()
765 swptr = d->swptr; in serdma_reg_access()
766 d->hwptr = d->swptr = (d->swptr + 1) % d->ringsz; in serdma_reg_access()
769 descr = &d->descrtab[swptr]; in serdma_reg_access()
770 data_p = &d->dma_buf[swptr * 4]; in serdma_reg_access()
775 data_p, swptr, d->hwptr)); in serdma_reg_access()
941 serdma_t *d; in cs4297a_update_ptr() local
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c436 struct mlx5_rsc_debug *d; in dbg_read() local
446 d = (void *)(desc - desc->i) - sizeof(*d); in dbg_read()
447 switch (d->type) { in dbg_read()
449 field = qp_read_field(d->dev, d->object, desc->i, &is_str); in dbg_read()
453 field = eq_read_field(d->dev, d->object, desc->i); in dbg_read()
457 field = cq_read_field(d->dev, d->object, desc->i); in dbg_read()
461 mlx5_core_warn(d->dev, "invalid resource type %d\n", d->type); in dbg_read()
490 struct mlx5_rsc_debug *d; in add_res_tree() local
495 d = kzalloc(sizeof(*d) + nfile * sizeof(d->fields[0]), GFP_KERNEL); in add_res_tree()
496 if (!d) in add_res_tree()
[all …]
/linux-4.4.14/drivers/firmware/
Ddmi_scan.c178 const char *d = (const char *) dm; in dmi_save_ident() local
184 p = dmi_string(dm, d[string]); in dmi_save_ident()
194 const u8 *d = (u8 *) dm + index; in dmi_save_uuid() local
202 if (d[i] != 0x00) in dmi_save_uuid()
204 if (d[i] != 0xFF) in dmi_save_uuid()
221 sprintf(s, "%pUL", d); in dmi_save_uuid()
223 sprintf(s, "%pUB", d); in dmi_save_uuid()
231 const u8 *d = (u8 *) dm + index; in dmi_save_type() local
241 sprintf(s, "%u", *d & 0x7F); in dmi_save_type()
269 const char *d = (char *)(dm + 1) + (i * 2); in dmi_save_devices() local
[all …]
/linux-4.4.14/arch/m68k/coldfire/
Dintc-525x.c21 static void intc2_irq_gpio_mask(struct irq_data *d) in intc2_irq_gpio_mask() argument
24 u32 type = irqd_get_trigger_type(d); in intc2_irq_gpio_mask()
25 int irq = d->irq - MCF_IRQ_GPIO0; in intc2_irq_gpio_mask()
34 static void intc2_irq_gpio_unmask(struct irq_data *d) in intc2_irq_gpio_unmask() argument
37 u32 type = irqd_get_trigger_type(d); in intc2_irq_gpio_unmask()
38 int irq = d->irq - MCF_IRQ_GPIO0; in intc2_irq_gpio_unmask()
47 static void intc2_irq_gpio_ack(struct irq_data *d) in intc2_irq_gpio_ack() argument
50 u32 type = irqd_get_trigger_type(d); in intc2_irq_gpio_ack()
51 int irq = d->irq - MCF_IRQ_GPIO0; in intc2_irq_gpio_ack()
60 static int intc2_irq_gpio_set_type(struct irq_data *d, unsigned int f) in intc2_irq_gpio_set_type() argument
/linux-4.4.14/arch/mips/alchemy/common/
Dirq.c76 static int au1x_ic_settype(struct irq_data *d, unsigned int type);
77 static int au1300_gpic_settype(struct irq_data *d, unsigned int type);
288 static void au1x_ic0_unmask(struct irq_data *d) in au1x_ic0_unmask() argument
290 unsigned int bit = d->irq - AU1000_INTC0_INT_BASE; in au1x_ic0_unmask()
298 static void au1x_ic1_unmask(struct irq_data *d) in au1x_ic1_unmask() argument
300 unsigned int bit = d->irq - AU1000_INTC1_INT_BASE; in au1x_ic1_unmask()
308 static void au1x_ic0_mask(struct irq_data *d) in au1x_ic0_mask() argument
310 unsigned int bit = d->irq - AU1000_INTC0_INT_BASE; in au1x_ic0_mask()
318 static void au1x_ic1_mask(struct irq_data *d) in au1x_ic1_mask() argument
320 unsigned int bit = d->irq - AU1000_INTC1_INT_BASE; in au1x_ic1_mask()
[all …]
/linux-4.4.14/fs/hpfs/
Ddnode.c11 static loff_t get_pos(struct dnode *d, struct hpfs_dirent *fde) in get_pos() argument
14 struct hpfs_dirent *de_end = dnode_end_de(d); in get_pos()
16 for (de = dnode_first_de(d); de < de_end; de = de_next_de(de)) { in get_pos()
17 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
21 return ((loff_t)le32_to_cpu(d->self) << 4) | (loff_t)1; in get_pos()
92 static void hpfs_pos_ins(loff_t *p, loff_t d, loff_t c) in hpfs_pos_ins() argument
94 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_ins()
104 static void hpfs_pos_del(loff_t *p, loff_t d, loff_t c) in hpfs_pos_del() argument
106 if ((*p & ~0x3f) == (d & ~0x3f) && (*p & 0x3f) >= (d & 0x3f)) { in hpfs_pos_del()
116 static struct hpfs_dirent *dnode_pre_last_de(struct dnode *d) in dnode_pre_last_de() argument
[all …]
/linux-4.4.14/fs/ufs/
Dswab.h62 fs32_add(struct super_block *sbp, __fs32 *n, int d) in fs32_add() argument
65 le32_add_cpu((__le32 *)n, d); in fs32_add()
67 be32_add_cpu((__be32 *)n, d); in fs32_add()
71 fs32_sub(struct super_block *sbp, __fs32 *n, int d) in fs32_sub() argument
74 le32_add_cpu((__le32 *)n, -d); in fs32_sub()
76 be32_add_cpu((__be32 *)n, -d); in fs32_sub()
98 fs16_add(struct super_block *sbp, __fs16 *n, int d) in fs16_add() argument
101 le16_add_cpu((__le16 *)n, d); in fs16_add()
103 be16_add_cpu((__be16 *)n, d); in fs16_add()
107 fs16_sub(struct super_block *sbp, __fs16 *n, int d) in fs16_sub() argument
[all …]
/linux-4.4.14/include/linux/amba/
Dbus.h60 #define to_amba_device(d) container_of(d, struct amba_device, dev) argument
62 #define amba_get_drvdata(d) dev_get_drvdata(&d->dev) argument
63 #define amba_set_drvdata(d,p) dev_set_drvdata(&d->dev, p) argument
120 #define amba_config(d) AMBA_CONFIG_BITS((d)->periphid) argument
121 #define amba_rev(d) AMBA_REV_BITS((d)->periphid) argument
122 #define amba_manf(d) AMBA_MANF_BITS((d)->periphid) argument
123 #define amba_part(d) AMBA_PART_BITS((d)->periphid) argument
/linux-4.4.14/drivers/mtd/maps/
Ddc21285.c80 static void dc21285_write8(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write8() argument
86 *(uint8_t*)(map->virt + adr) = d.x[0]; in dc21285_write8()
89 static void dc21285_write16(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write16() argument
95 *(uint16_t*)(map->virt + adr) = d.x[0]; in dc21285_write16()
98 static void dc21285_write32(struct map_info *map, const map_word d, unsigned long adr) in dc21285_write32() argument
102 *(uint32_t*)(map->virt + adr) = d.x[0]; in dc21285_write32()
108 map_word d; in dc21285_copy_to_32() local
109 d.x[0] = *((uint32_t*)from); in dc21285_copy_to_32()
110 dc21285_write32(map, d, to); in dc21285_copy_to_32()
120 map_word d; in dc21285_copy_to_16() local
[all …]
/linux-4.4.14/arch/avr32/mach-at32ap/
Dextint.c64 static void eic_ack_irq(struct irq_data *d) in eic_ack_irq() argument
66 struct eic *eic = irq_data_get_irq_chip_data(d); in eic_ack_irq()
67 eic_writel(eic, ICR, 1 << (d->irq - eic->first_irq)); in eic_ack_irq()
70 static void eic_mask_irq(struct irq_data *d) in eic_mask_irq() argument
72 struct eic *eic = irq_data_get_irq_chip_data(d); in eic_mask_irq()
73 eic_writel(eic, IDR, 1 << (d->irq - eic->first_irq)); in eic_mask_irq()
76 static void eic_mask_ack_irq(struct irq_data *d) in eic_mask_ack_irq() argument
78 struct eic *eic = irq_data_get_irq_chip_data(d); in eic_mask_ack_irq()
79 eic_writel(eic, ICR, 1 << (d->irq - eic->first_irq)); in eic_mask_ack_irq()
80 eic_writel(eic, IDR, 1 << (d->irq - eic->first_irq)); in eic_mask_ack_irq()
[all …]
/linux-4.4.14/arch/arm/mach-pxa/
Dmfp-pxa2xx.c175 struct gpio_desc *d; in gpio_set_wake() local
181 d = &gpio_desc[gpio]; in gpio_set_wake()
182 c = d->config; in gpio_set_wake()
184 if (!d->valid) in gpio_set_wake()
190 if (d->keypad_gpio && (MFP_AF(d->config) == 0) && in gpio_set_wake()
191 (d->config & MFP_LPM_CAN_WAKEUP)) { in gpio_set_wake()
193 PKWR |= d->mask; in gpio_set_wake()
195 PKWR &= ~d->mask; in gpio_set_wake()
199 mux_taken = (PWER & d->mux_mask) & (~d->mask); in gpio_set_wake()
203 if (d->can_wakeup && (c & MFP_LPM_CAN_WAKEUP)) { in gpio_set_wake()
[all …]
/linux-4.4.14/drivers/gpio/
Dgpio-davinci.c68 static inline struct davinci_gpio_regs __iomem *irq2regs(struct irq_data *d) in irq2regs() argument
72 g = (__force struct davinci_gpio_regs __iomem *)irq_data_get_irq_chip_data(d); in irq2regs()
85 struct davinci_gpio_controller *d = chip2controller(chip); in __davinci_direction() local
86 struct davinci_gpio_regs __iomem *g = d->regs; in __davinci_direction()
91 spin_lock_irqsave(&d->lock, flags); in __davinci_direction()
100 spin_unlock_irqrestore(&d->lock, flags); in __davinci_direction()
125 struct davinci_gpio_controller *d = chip2controller(chip); in davinci_gpio_get() local
126 struct davinci_gpio_regs __iomem *g = d->regs; in davinci_gpio_get()
137 struct davinci_gpio_controller *d = chip2controller(chip); in davinci_gpio_set() local
138 struct davinci_gpio_regs __iomem *g = d->regs; in davinci_gpio_set()
[all …]
/linux-4.4.14/arch/mn10300/unit-asb2364/
Dirq-fpga.c20 static void asb2364_fpga_mask(struct irq_data *d) in asb2364_fpga_mask() argument
22 ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0001; in asb2364_fpga_mask()
26 static void asb2364_fpga_ack(struct irq_data *d) in asb2364_fpga_ack() argument
28 ASB2364_FPGA_REG_IRQ(d->irq - NR_CPU_IRQS) = 0x0001; in asb2364_fpga_ack()
32 static void asb2364_fpga_mask_ack(struct irq_data *d) in asb2364_fpga_mask_ack() argument
34 ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0001; in asb2364_fpga_mask_ack()
36 ASB2364_FPGA_REG_IRQ(d->irq - NR_CPU_IRQS) = 0x0001; in asb2364_fpga_mask_ack()
40 static void asb2364_fpga_unmask(struct irq_data *d) in asb2364_fpga_unmask() argument
42 ASB2364_FPGA_REG_MASK(d->irq - NR_CPU_IRQS) = 0x0000; in asb2364_fpga_unmask()
/linux-4.4.14/drivers/scsi/libsas/
Dsas_init.c459 struct sas_phy_data *d = container_of(work, typeof(*d), reset_work.work); in phy_reset_work() local
461 d->reset_result = transport_sas_phy_reset(d->phy, d->hard_reset); in phy_reset_work()
466 struct sas_phy_data *d = container_of(work, typeof(*d), enable_work.work); in phy_enable_work() local
468 d->enable_result = sas_phy_enable(d->phy, d->enable); in phy_enable_work()
473 struct sas_phy_data *d = kzalloc(sizeof(*d), GFP_KERNEL); in sas_phy_setup() local
475 if (!d) in sas_phy_setup()
478 mutex_init(&d->event_lock); in sas_phy_setup()
479 INIT_SAS_WORK(&d->reset_work, phy_reset_work); in sas_phy_setup()
480 INIT_SAS_WORK(&d->enable_work, phy_enable_work); in sas_phy_setup()
481 d->phy = phy; in sas_phy_setup()
[all …]
/linux-4.4.14/drivers/isdn/i4l/
Disdn_audio.c305 int d = *((*in)++); in isdn_audio_get_bits() local
307 s->word = (s->word << 8) | d; in isdn_audio_get_bits()
321 int d = (s->word >> (s->nleft - 8)); in isdn_audio_put_bits() local
322 *(out[0]++) = d & 255; in isdn_audio_put_bits()
335 s->d = 5; in isdn_audio_adpcm_init()
365 int d = s->d; in isdn_audio_adpcm2xlaw() local
374 d = 4; in isdn_audio_adpcm2xlaw()
377 a += sign * ((e << 1) + 1) * d >> 1; in isdn_audio_adpcm2xlaw()
378 if (d & 1) in isdn_audio_adpcm2xlaw()
386 d = (d * Mx[nbits - 2][e] + 0x2000) >> 14; in isdn_audio_adpcm2xlaw()
[all …]
/linux-4.4.14/arch/arm/mach-footbridge/
Disa-irq.c33 static void isa_mask_pic_lo_irq(struct irq_data *d) in isa_mask_pic_lo_irq() argument
35 unsigned int mask = 1 << (d->irq & 7); in isa_mask_pic_lo_irq()
40 static void isa_ack_pic_lo_irq(struct irq_data *d) in isa_ack_pic_lo_irq() argument
42 unsigned int mask = 1 << (d->irq & 7); in isa_ack_pic_lo_irq()
48 static void isa_unmask_pic_lo_irq(struct irq_data *d) in isa_unmask_pic_lo_irq() argument
50 unsigned int mask = 1 << (d->irq & 7); in isa_unmask_pic_lo_irq()
61 static void isa_mask_pic_hi_irq(struct irq_data *d) in isa_mask_pic_hi_irq() argument
63 unsigned int mask = 1 << (d->irq & 7); in isa_mask_pic_hi_irq()
68 static void isa_ack_pic_hi_irq(struct irq_data *d) in isa_ack_pic_hi_irq() argument
70 unsigned int mask = 1 << (d->irq & 7); in isa_ack_pic_hi_irq()
[all …]
/linux-4.4.14/arch/arm/mach-omap1/
Ddma.c281 struct omap_dma_dev_attr *d; in omap1_system_dma_init() local
306 d = kzalloc(sizeof(struct omap_dma_dev_attr), GFP_KERNEL); in omap1_system_dma_init()
307 if (!d) { in omap1_system_dma_init()
314 d->lch_count = OMAP1_LOGICAL_DMA_CH_COUNT; in omap1_system_dma_init()
318 d->dev_caps = ENABLE_1510_MODE; in omap1_system_dma_init()
319 enable_1510_mode = d->dev_caps & ENABLE_1510_MODE; in omap1_system_dma_init()
322 d->dev_caps = ENABLE_16XX_MODE; in omap1_system_dma_init()
324 d->dev_caps |= SRC_PORT; in omap1_system_dma_init()
325 d->dev_caps |= DST_PORT; in omap1_system_dma_init()
326 d->dev_caps |= SRC_INDEX; in omap1_system_dma_init()
[all …]
/linux-4.4.14/arch/ia64/lib/
Dxor.S40 .rotr s1[6+1], s2[6+1], d[2]
45 (p[6]) xor d[0] = s1[6], s2[6]
46 (p[6+1])st8.nta [r8] = d[1], 8
78 .rotr s1[6+1], s2[6+1], s3[6+1], d[2]
83 (p[6]) xor d[0] = s1[6], s2[6]
86 (p[6+1])st8.nta [r8] = d[1], 8
87 (p[6]) xor d[0] = d[0], s3[6]
119 .rotr s1[6+1], s2[6+1], s3[6+1], s4[6+1], d[2]
124 (p[6]) xor d[0] = s1[6], s2[6]
129 (p[6+1])st8.nta [r8] = d[1], 8
[all …]
/linux-4.4.14/tools/perf/
Dbuiltin-diff.c55 #define data__for_each_file_start(i, d, s) \ argument
56 for (i = s, d = &data__files[s]; \
58 i++, d = &data__files[i])
60 #define data__for_each_file(i, d) data__for_each_file_start(i, d, 0) argument
61 #define data__for_each_file_new(i, d) data__for_each_file_start(i, d, 1) argument
400 struct data__file *d = container_of(ptr, struct data__file, fmt); in fmt_to_data_file() local
402 return d; in fmt_to_data_file()
406 get_pair_data(struct hist_entry *he, struct data__file *d) in get_pair_data() argument
412 if (pair->hists == d->hists) in get_pair_data()
422 struct data__file *d = fmt_to_data_file(&dfmt->fmt); in get_pair_fmt() local
[all …]
/linux-4.4.14/arch/mips/sgi-ip22/
Dip22-int.c34 static void enable_local0_irq(struct irq_data *d) in enable_local0_irq() argument
38 if (d->irq != SGI_MAP_0_IRQ) in enable_local0_irq()
39 sgint->imask0 |= (1 << (d->irq - SGINT_LOCAL0)); in enable_local0_irq()
42 static void disable_local0_irq(struct irq_data *d) in disable_local0_irq() argument
44 sgint->imask0 &= ~(1 << (d->irq - SGINT_LOCAL0)); in disable_local0_irq()
53 static void enable_local1_irq(struct irq_data *d) in enable_local1_irq() argument
57 if (d->irq != SGI_MAP_1_IRQ) in enable_local1_irq()
58 sgint->imask1 |= (1 << (d->irq - SGINT_LOCAL1)); in enable_local1_irq()
61 static void disable_local1_irq(struct irq_data *d) in disable_local1_irq() argument
63 sgint->imask1 &= ~(1 << (d->irq - SGINT_LOCAL1)); in disable_local1_irq()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dllog_cat.c150 struct llog_process_data *d = data; in llog_cat_process_cb() local
171 if (rec->lrh_index < d->lpd_startcat) in llog_cat_process_cb()
174 else if (d->lpd_startidx > 0) { in llog_cat_process_cb()
177 cd.lpcd_first_idx = d->lpd_startidx; in llog_cat_process_cb()
179 rc = llog_process_or_fork(env, llh, d->lpd_cb, d->lpd_data, in llog_cat_process_cb()
182 d->lpd_startidx = 0; in llog_cat_process_cb()
184 rc = llog_process_or_fork(env, llh, d->lpd_cb, d->lpd_data, in llog_cat_process_cb()
198 struct llog_process_data d; in llog_cat_process_or_fork() local
203 d.lpd_data = data; in llog_cat_process_or_fork()
204 d.lpd_cb = cb; in llog_cat_process_or_fork()
[all …]

12345678910>>...15