Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 116) sorted by relevance

12345

/drivers/input/misc/
Dgpio_event.c37 struct gpio_event *ip = input_get_drvdata(dev); in gpio_input_event() local
39 for (devnr = 0; devnr < ip->input_devs->count; devnr++) in gpio_input_event()
40 if (ip->input_devs->dev[devnr] == dev) in gpio_input_event()
42 if (devnr == ip->input_devs->count) { in gpio_input_event()
47 for (i = 0, ii = ip->info->info; i < ip->info->info_count; i++, ii++) { in gpio_input_event()
49 tmp_ret = (*ii)->event(ip->input_devs, *ii, in gpio_input_event()
50 &ip->state[i], in gpio_input_event()
59 static int gpio_event_call_all_func(struct gpio_event *ip, int func) in gpio_event_call_all_func() argument
66 ii = ip->info->info; in gpio_event_call_all_func()
67 for (i = 0; i < ip->info->info_count; i++, ii++) { in gpio_event_call_all_func()
[all …]
/drivers/net/ethernet/sgi/
Dioc3-eth.c110 static inline void ioc3_stop(struct ioc3_private *ip);
402 static void ioc3_get_eaddr_nic(struct ioc3_private *ip) in ioc3_get_eaddr_nic() argument
404 struct ioc3 *ioc3 = ip->regs; in ioc3_get_eaddr_nic()
431 priv_netdev(ip)->dev_addr[i - 2] = nic[i]; in ioc3_get_eaddr_nic()
439 static void ioc3_get_eaddr(struct ioc3_private *ip) in ioc3_get_eaddr() argument
441 ioc3_get_eaddr_nic(ip); in ioc3_get_eaddr()
443 printk("Ethernet address is %pM.\n", priv_netdev(ip)->dev_addr); in ioc3_get_eaddr()
448 struct ioc3_private *ip = netdev_priv(dev); in __ioc3_set_mac_address() local
449 struct ioc3 *ioc3 = ip->regs; in __ioc3_set_mac_address()
458 struct ioc3_private *ip = netdev_priv(dev); in ioc3_set_mac_address() local
[all …]
/drivers/infiniband/hw/qib/
Dqib_mmap.c48 struct qib_mmap_info *ip = in qib_release_mmap_info() local
50 struct qib_ibdev *dev = to_idev(ip->context->device); in qib_release_mmap_info()
53 list_del(&ip->pending_mmaps); in qib_release_mmap_info()
56 vfree(ip->obj); in qib_release_mmap_info()
57 kfree(ip); in qib_release_mmap_info()
66 struct qib_mmap_info *ip = vma->vm_private_data; in qib_vma_open() local
68 kref_get(&ip->ref); in qib_vma_open()
73 struct qib_mmap_info *ip = vma->vm_private_data; in qib_vma_close() local
75 kref_put(&ip->ref, qib_release_mmap_info); in qib_vma_close()
94 struct qib_mmap_info *ip, *pp; in qib_mmap() local
[all …]
Dqib_cq.c80 if (cq->ip) { in qib_cq_enter()
137 if (cq->ip) { in qib_poll_cq()
254 cq->ip = qib_create_mmap_info(dev, sz, context, wc); in qib_create_cq()
255 if (!cq->ip) { in qib_create_cq()
260 err = ib_copy_to_udata(udata, &cq->ip->offset, in qib_create_cq()
261 sizeof(cq->ip->offset)); in qib_create_cq()
267 cq->ip = NULL; in qib_create_cq()
279 if (cq->ip) { in qib_create_cq()
281 list_add(&cq->ip->pending_mmaps, &dev->pending_mmaps); in qib_create_cq()
304 kfree(cq->ip); in qib_create_cq()
[all …]
Dqib_srq.c150 srq->ip = in qib_create_srq()
153 if (!srq->ip) { in qib_create_srq()
158 err = ib_copy_to_udata(udata, &srq->ip->offset, in qib_create_srq()
159 sizeof(srq->ip->offset)); in qib_create_srq()
165 srq->ip = NULL; in qib_create_srq()
185 if (srq->ip) { in qib_create_srq()
187 list_add(&srq->ip->pending_mmaps, &dev->pending_mmaps); in qib_create_srq()
195 kfree(srq->ip); in qib_create_srq()
305 if (srq->ip) { in qib_modify_srq()
306 struct qib_mmap_info *ip = srq->ip; in qib_modify_srq() local
[all …]
/drivers/infiniband/hw/ipath/
Dipath_mmap.c48 struct ipath_mmap_info *ip = in ipath_release_mmap_info() local
50 struct ipath_ibdev *dev = to_idev(ip->context->device); in ipath_release_mmap_info()
53 list_del(&ip->pending_mmaps); in ipath_release_mmap_info()
56 vfree(ip->obj); in ipath_release_mmap_info()
57 kfree(ip); in ipath_release_mmap_info()
66 struct ipath_mmap_info *ip = vma->vm_private_data; in ipath_vma_open() local
68 kref_get(&ip->ref); in ipath_vma_open()
73 struct ipath_mmap_info *ip = vma->vm_private_data; in ipath_vma_close() local
75 kref_put(&ip->ref, ipath_release_mmap_info); in ipath_vma_close()
94 struct ipath_mmap_info *ip, *pp; in ipath_mmap() local
[all …]
Dipath_cq.c80 if (cq->ip) { in ipath_cq_enter()
138 if (cq->ip) { in ipath_poll_cq()
247 cq->ip = ipath_create_mmap_info(dev, sz, context, wc); in ipath_create_cq()
248 if (!cq->ip) { in ipath_create_cq()
253 err = ib_copy_to_udata(udata, &cq->ip->offset, in ipath_create_cq()
254 sizeof(cq->ip->offset)); in ipath_create_cq()
260 cq->ip = NULL; in ipath_create_cq()
272 if (cq->ip) { in ipath_create_cq()
274 list_add(&cq->ip->pending_mmaps, &dev->pending_mmaps); in ipath_create_cq()
297 kfree(cq->ip); in ipath_create_cq()
[all …]
Dipath_srq.c153 srq->ip = in ipath_create_srq()
157 if (!srq->ip) { in ipath_create_srq()
162 err = ib_copy_to_udata(udata, &srq->ip->offset, in ipath_create_srq()
163 sizeof(srq->ip->offset)); in ipath_create_srq()
169 srq->ip = NULL; in ipath_create_srq()
189 if (srq->ip) { in ipath_create_srq()
191 list_add(&srq->ip->pending_mmaps, &dev->pending_mmaps); in ipath_create_srq()
199 kfree(srq->ip); in ipath_create_srq()
309 if (srq->ip) { in ipath_modify_srq()
310 struct ipath_mmap_info *ip = srq->ip; in ipath_modify_srq() local
[all …]
/drivers/video/
Dpmag-aa-fb.c229 struct aafb_info *ip = (struct aafb_info *)info; in aafb_get_fix() local
233 fix->smem_start = ip->fb_start; in aafb_get_fix()
234 fix->smem_len = ip->fb_size; in aafb_get_fix()
307 struct aafb_info *ip = (struct aafb_info *)info; in aafb_switch() local
308 struct display *old = (currcon < 0) ? &ip->disp : (fb_display + currcon); in aafb_switch()
309 struct display *new = (con < 0) ? &ip->disp : (fb_display + con); in aafb_switch()
316 aafb_set_disp(new, con, ip); in aafb_switch()
380 struct aafb_info *ip = (struct aafb_info *)info; in aafb_update_var() local
381 struct display *disp = (con < 0) ? &ip->disp : (fb_display + con); in aafb_update_var()
384 aafbcon_cursor(disp, CM_ERASE, ip->cursor.x, ip->cursor.y); in aafb_update_var()
[all …]
/drivers/net/slip/
Dslhc.c234 struct iphdr *ip; in slhc_compress() local
246 ip = (struct iphdr *) icp; in slhc_compress()
249 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress()
251 if(ip->protocol != IPPROTO_TCP) in slhc_compress()
259 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress()
260 hlen = ip->ihl*4 + th->doff*4; in slhc_compress()
287 if( ip->saddr == cs->cs_ip.saddr in slhc_compress()
288 && ip->daddr == cs->cs_ip.daddr in slhc_compress()
343 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress()
344 || ip->tos != cs->cs_ip.tos in slhc_compress()
[all …]
/drivers/scsi/
Dscsicam.c67 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument
78 ret = scsi_partsize(p, (unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
79 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param()
86 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
87 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param()
92 if (ret || ip[0] > 255 || ip[1] > 63) { in scsicam_bios_param()
94 ip[0] = 255; in scsicam_bios_param()
95 ip[1] = 63; in scsicam_bios_param()
97 ip[0] = 64; in scsicam_bios_param()
98 ip[1] = 32; in scsicam_bios_param()
[all …]
Dqlogicfas408.c469 sector_t capacity, int ip[]) in DEF_SCSI_QCMD()
472 ip[0] = 0x40; in DEF_SCSI_QCMD()
473 ip[1] = 0x20; in DEF_SCSI_QCMD()
474 ip[2] = (unsigned long) capacity / (ip[0] * ip[1]); in DEF_SCSI_QCMD()
475 if (ip[2] > 1024) { in DEF_SCSI_QCMD()
476 ip[0] = 0xff; in DEF_SCSI_QCMD()
477 ip[1] = 0x3f; in DEF_SCSI_QCMD()
478 ip[2] = (unsigned long) capacity / (ip[0] * ip[1]); in DEF_SCSI_QCMD()
480 if (ip[2] > 1023) in DEF_SCSI_QCMD()
481 ip[2] = 1023; in DEF_SCSI_QCMD()
Dpas16.c512 sector_t capacity, int * ip) in pas16_biosparam() argument
515 ip[0] = 64; in pas16_biosparam()
516 ip[1] = 32; in pas16_biosparam()
517 ip[2] = size >> 11; /* I think I have it as /(32*64) */ in pas16_biosparam()
518 if( ip[2] > 1024 ) { /* yes, >, not >= */ in pas16_biosparam()
519 ip[0]=255; in pas16_biosparam()
520 ip[1]=63; in pas16_biosparam()
521 ip[2]=size/(63*255); in pas16_biosparam()
522 if( ip[2] > 1023 ) /* yes >1023... */ in pas16_biosparam()
523 ip[2] = 1023; in pas16_biosparam()
Dppa.c833 sector_t capacity, int ip[]) in DEF_SCSI_QCMD()
835 ip[0] = 0x40; in DEF_SCSI_QCMD()
836 ip[1] = 0x20; in DEF_SCSI_QCMD()
837 ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); in DEF_SCSI_QCMD()
838 if (ip[2] > 1024) { in DEF_SCSI_QCMD()
839 ip[0] = 0xff; in DEF_SCSI_QCMD()
840 ip[1] = 0x3f; in DEF_SCSI_QCMD()
841 ip[2] = ((unsigned long) capacity + 1) / (ip[0] * ip[1]); in DEF_SCSI_QCMD()
842 if (ip[2] > 1023) in DEF_SCSI_QCMD()
843 ip[2] = 1023; in DEF_SCSI_QCMD()
/drivers/net/ethernet/xscale/ixp2000/
Dixpdev.c44 struct ixpdev_priv *ip = netdev_priv(dev); in ixpdev_xmit() local
60 desc->channel = ip->channel; in ixpdev_xmit()
69 ip->tx_queue_entries++; in ixpdev_xmit()
70 if (ip->tx_queue_entries == TX_BUF_COUNT_PER_CHAN) in ixpdev_xmit()
132 struct ixpdev_priv *ip = container_of(napi, struct ixpdev_priv, napi); in ixpdev_poll() local
133 struct net_device *dev = ip->dev; in ixpdev_poll()
158 struct ixpdev_priv *ip; in ixpdev_tx_complete() local
177 ip = netdev_priv(nds[channel]); in ixpdev_tx_complete()
178 if (ip->tx_queue_entries == TX_BUF_COUNT_PER_CHAN) in ixpdev_tx_complete()
180 ip->tx_queue_entries--; in ixpdev_tx_complete()
[all …]
/drivers/mtd/
Dinftlmount.c53 struct INFTLPartition *ip; in find_boot_record() local
191 ip = &mh->Partitions[i]; in find_boot_record()
192 ip->virtualUnits = le32_to_cpu(ip->virtualUnits); in find_boot_record()
193 ip->firstUnit = le32_to_cpu(ip->firstUnit); in find_boot_record()
194 ip->lastUnit = le32_to_cpu(ip->lastUnit); in find_boot_record()
195 ip->flags = le32_to_cpu(ip->flags); in find_boot_record()
196 ip->spareUnits = le32_to_cpu(ip->spareUnits); in find_boot_record()
197 ip->Reserved0 = le32_to_cpu(ip->Reserved0); in find_boot_record()
205 i, ip->virtualUnits, ip->firstUnit, in find_boot_record()
206 ip->lastUnit, ip->flags, in find_boot_record()
[all …]
/drivers/dma/ipu/
Dipu_idmac.c274 struct chan_param_mem_interleaved ip; member
314 params->ip.bpp = 2; in ipu_ch_param_set_size()
315 params->ip.pfs = 4; in ipu_ch_param_set_size()
316 params->ip.npb = 15; in ipu_ch_param_set_size()
317 params->ip.sat = 2; /* SAT = 32-bit access */ in ipu_ch_param_set_size()
318 params->ip.ofs0 = 0; /* Red bit offset */ in ipu_ch_param_set_size()
319 params->ip.ofs1 = 5; /* Green bit offset */ in ipu_ch_param_set_size()
320 params->ip.ofs2 = 11; /* Blue bit offset */ in ipu_ch_param_set_size()
321 params->ip.ofs3 = 16; /* Alpha bit offset */ in ipu_ch_param_set_size()
322 params->ip.wid0 = 4; /* Red bit width - 1 */ in ipu_ch_param_set_size()
[all …]
/drivers/isdn/hardware/mISDN/
DmISDNipac.c41 #define ReadHSCX(h, o) (h->ip->read_reg(h->ip->hw, h->off + o))
42 #define WriteHSCX(h, o, v) (h->ip->write_reg(h->ip->hw, h->off + o, v))
43 #define ReadIPAC(ip, o) (ip->read_reg(ip->hw, o)) argument
44 #define WriteIPAC(ip, o, v) (ip->write_reg(ip->hw, o, v)) argument
891 pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr, in waitforCEC()
894 pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr); in waitforCEC()
911 pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr, in waitforXFW()
914 pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr); in waitforXFW()
920 if (hx->ip->type & IPAC_TYPE_IPACX) in hscx_cmdr()
933 pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count); in hscx_empty_fifo()
[all …]
/drivers/staging/android/
Dtrace_persistent.c28 unsigned long ip; member
76 static void persistent_trace_call(unsigned long ip, unsigned long parent_ip) in persistent_trace_call() argument
102 rec.ip = ip; in persistent_trace_call()
104 rec.ip |= cpu; in persistent_trace_call()
180 rec->ip & 3, rec->ip, rec->parent_ip, in persistent_trace_seq_show()
181 (void *)rec->ip, (void *)rec->parent_ip); in persistent_trace_seq_show()
/drivers/scsi/arm/
Dacornscsi-io.S37 ldmia r0!, {r5, r6, r7, ip}
41 orr r6, r6, ip, lsl #16
84 ldmia r1!, {r4, r6, ip, lr}
94 mov r3, ip, lsl #16
96 mov r4, ip, lsr #16
98 mov ip, lr, lsl #16
99 orr ip, ip, ip, lsr #16
102 stmia r0!, {r3, r4, ip, lr}
/drivers/firmware/
Discsi_ibft.c194 static ssize_t sprintf_ipaddr(char *buf, u8 *ip) in sprintf_ipaddr() argument
198 if (ip[0] == 0 && ip[1] == 0 && ip[2] == 0 && ip[3] == 0 && in sprintf_ipaddr()
199 ip[4] == 0 && ip[5] == 0 && ip[6] == 0 && ip[7] == 0 && in sprintf_ipaddr()
200 ip[8] == 0 && ip[9] == 0 && ip[10] == 0xff && ip[11] == 0xff) { in sprintf_ipaddr()
204 str += sprintf(buf, "%pI4", ip + 12); in sprintf_ipaddr()
209 str += sprintf(str, "%pI6", ip); in sprintf_ipaddr()
/drivers/net/ethernet/sfc/
Dselftest.c46 struct iphdr ip; member
286 received->ip.saddr = payload->ip.saddr; in efx_loopback_rx_packet()
288 received->ip.check = payload->ip.check; in efx_loopback_rx_packet()
316 if (memcmp(&received->ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_loopback_rx_packet()
374 payload->ip.daddr = htonl(INADDR_LOOPBACK); in efx_iterate_state()
375 payload->ip.ihl = 5; in efx_iterate_state()
376 payload->ip.check = htons(0xdead); in efx_iterate_state()
377 payload->ip.tot_len = htons(sizeof(*payload) - sizeof(struct ethhdr)); in efx_iterate_state()
378 payload->ip.version = IPVERSION; in efx_iterate_state()
379 payload->ip.protocol = IPPROTO_UDP; in efx_iterate_state()
[all …]
/drivers/s390/char/
Dsclp_tty.c368 unsigned char *ip, *op; in sclp_switch_cases() local
373 ip = op = buf; in sclp_switch_cases()
376 if (*ip == CASE_DELIMITER) { in sclp_switch_cases()
378 if (count && ip[1] == CASE_DELIMITER) { in sclp_switch_cases()
383 *op++ = *ip++; in sclp_switch_cases()
392 ip++; in sclp_switch_cases()
399 *op++ = _ebc_toupper[(int) *ip++]; in sclp_switch_cases()
402 *op++ = _ebc_tolower[(int) *ip++]; in sclp_switch_cases()
405 *op++ = *ip++; in sclp_switch_cases()
/drivers/net/appletalk/
Dipddp.c132 if(rt->ip == paddr) in ipddp_xmit()
199 rt->ip = new_rt->ip; in ipddp_create()
234 if(tmp->ip == rt->ip && in ipddp_delete()
259 if(f->ip == rt->ip && in __ipddp_find_route()
/drivers/gpu/drm/nouveau/
Dnouveau_grctx.h79 int ip = 0; in _cp_bra() local
82 ip = ctx->ctxprog_label[name] << CP_BRA_IP_SHIFT; in _cp_bra()
83 if (ip == 0) in _cp_bra()
84 ip = 0xff000000 | (name << CP_BRA_IP_SHIFT); in _cp_bra()
87 cp_out(ctx, CP_BRA | (mod << 18) | ip | flag | in _cp_bra()

12345