Home
last modified time | relevance | path

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

123456789

/drivers/net/ethernet/sgi/
Dioc3-eth.c109 static void ioc3_start(struct ioc3_private *ip);
110 static inline void ioc3_stop(struct ioc3_private *ip);
113 static void ioc3_free_rx_bufs(struct ioc3_private *ip);
114 static inline void ioc3_clean_tx_ring(struct ioc3_private *ip);
123 static inline int ioc3_alloc_skb(struct ioc3_private *ip, struct sk_buff **skb, in ioc3_alloc_skb() argument
139 d = dma_map_single(ip->dma_dev, new_skb->data, in ioc3_alloc_skb()
142 if (dma_mapping_error(ip->dma_dev, d)) { in ioc3_alloc_skb()
229 struct ioc3_private *ip = netdev_priv(dev); in __ioc3_set_mac_address() local
233 &ip->regs->emar_h); in __ioc3_set_mac_address()
238 &ip->regs->emar_l); in __ioc3_set_mac_address()
[all …]
/drivers/gpu/drm/lima/
Dlima_pp.c18 #define pp_write(reg, data) writel(data, ip->iomem + reg)
19 #define pp_read(reg) readl(ip->iomem + reg)
21 static void lima_pp_handle_irq(struct lima_ip *ip, u32 state) in lima_pp_handle_irq() argument
23 struct lima_device *dev = ip->dev; in lima_pp_handle_irq()
43 struct lima_ip *ip = data; in lima_pp_irq_handler() local
44 struct lima_device *dev = ip->dev; in lima_pp_irq_handler()
52 lima_pp_handle_irq(ip, state); in lima_pp_irq_handler()
76 struct lima_ip *ip = pipe->processor[i]; in lima_pp_bcast_irq_handler() local
89 lima_pp_handle_irq(ip, state); in lima_pp_bcast_irq_handler()
104 static void lima_pp_soft_reset_async(struct lima_ip *ip) in lima_pp_soft_reset_async() argument
[all …]
Dlima_pmu.c11 #define pmu_write(reg, data) writel(data, ip->iomem + reg)
12 #define pmu_read(reg) readl(ip->iomem + reg)
14 static int lima_pmu_wait_cmd(struct lima_ip *ip) in lima_pmu_wait_cmd() argument
16 struct lima_device *dev = ip->dev; in lima_pmu_wait_cmd()
20 err = readl_poll_timeout(ip->iomem + LIMA_PMU_INT_RAWSTAT, in lima_pmu_wait_cmd()
32 static u32 lima_pmu_get_ip_mask(struct lima_ip *ip) in lima_pmu_get_ip_mask() argument
34 struct lima_device *dev = ip->dev; in lima_pmu_get_ip_mask()
43 if (dev->ip[lima_ip_pp0 + i].present) in lima_pmu_get_ip_mask()
47 if (dev->ip[lima_ip_pp0].present) in lima_pmu_get_ip_mask()
50 if (dev->ip[i].present) { in lima_pmu_get_ip_mask()
[all …]
Dlima_gp.c17 #define gp_write(reg, data) writel(data, ip->iomem + reg)
18 #define gp_read(reg) readl(ip->iomem + reg)
22 struct lima_ip *ip = data; in lima_gp_irq_handler() local
23 struct lima_device *dev = ip->dev; in lima_gp_irq_handler()
68 static void lima_gp_soft_reset_async(struct lima_ip *ip) in lima_gp_soft_reset_async() argument
70 if (ip->data.async_reset) in lima_gp_soft_reset_async()
76 ip->data.async_reset = true; in lima_gp_soft_reset_async()
79 static int lima_gp_soft_reset_async_wait(struct lima_ip *ip) in lima_gp_soft_reset_async_wait() argument
81 struct lima_device *dev = ip->dev; in lima_gp_soft_reset_async_wait()
85 if (!ip->data.async_reset) in lima_gp_soft_reset_async_wait()
[all …]
Dlima_mmu.c13 #define mmu_write(reg, data) writel(data, ip->iomem + reg)
14 #define mmu_read(reg) readl(ip->iomem + reg)
21 __ret = readl_poll_timeout(ip->iomem + (addr), val, \
31 struct lima_ip *ip = data; in lima_mmu_irq_handler() local
32 struct lima_device *dev = ip->dev; in lima_mmu_irq_handler()
46 lima_ip_name(ip)); in lima_mmu_irq_handler()
50 dev_err(dev->dev, "mmu %s irq bus error\n", lima_ip_name(ip)); in lima_mmu_irq_handler()
56 pipe = dev->pipe + (ip->id == lima_ip_gpmmu ? lima_pipe_gp : lima_pipe_pp); in lima_mmu_irq_handler()
62 static int lima_mmu_hw_init(struct lima_ip *ip) in lima_mmu_hw_init() argument
64 struct lima_device *dev = ip->dev; in lima_mmu_hw_init()
[all …]
Dlima_l2_cache.c11 #define l2_cache_write(reg, data) writel(data, ip->iomem + reg)
12 #define l2_cache_read(reg) readl(ip->iomem + reg)
14 static int lima_l2_cache_wait_idle(struct lima_ip *ip) in lima_l2_cache_wait_idle() argument
16 struct lima_device *dev = ip->dev; in lima_l2_cache_wait_idle()
20 err = readl_poll_timeout(ip->iomem + LIMA_L2_CACHE_STATUS, v, in lima_l2_cache_wait_idle()
30 int lima_l2_cache_flush(struct lima_ip *ip) in lima_l2_cache_flush() argument
34 spin_lock(&ip->data.lock); in lima_l2_cache_flush()
36 ret = lima_l2_cache_wait_idle(ip); in lima_l2_cache_flush()
37 spin_unlock(&ip->data.lock); in lima_l2_cache_flush()
41 static int lima_l2_cache_hw_init(struct lima_ip *ip) in lima_l2_cache_hw_init() argument
[all …]
Dlima_bcast.c11 #define bcast_write(reg, data) writel(data, ip->iomem + reg)
12 #define bcast_read(reg) readl(ip->iomem + reg)
17 struct lima_ip *ip = dev->ip + lima_ip_bcast; in lima_bcast_enable() local
29 static int lima_bcast_hw_init(struct lima_ip *ip) in lima_bcast_hw_init() argument
31 bcast_write(LIMA_BCAST_BROADCAST_MASK, ip->data.mask << 16); in lima_bcast_hw_init()
32 bcast_write(LIMA_BCAST_INTERRUPT_MASK, ip->data.mask); in lima_bcast_hw_init()
36 int lima_bcast_resume(struct lima_ip *ip) in lima_bcast_resume() argument
38 return lima_bcast_hw_init(ip); in lima_bcast_resume()
41 void lima_bcast_suspend(struct lima_ip *ip) in lima_bcast_suspend() argument
46 int lima_bcast_init(struct lima_ip *ip) in lima_bcast_init() argument
[all …]
Dlima_dlbu.c12 #define dlbu_write(reg, data) writel(data, ip->iomem + reg)
13 #define dlbu_read(reg) readl(ip->iomem + reg)
18 struct lima_ip *ip = dev->ip + lima_ip_dlbu; in lima_dlbu_enable() local
32 struct lima_ip *ip = dev->ip + lima_ip_dlbu; in lima_dlbu_disable() local
37 void lima_dlbu_set_reg(struct lima_ip *ip, u32 *reg) in lima_dlbu_set_reg() argument
45 static int lima_dlbu_hw_init(struct lima_ip *ip) in lima_dlbu_hw_init() argument
47 struct lima_device *dev = ip->dev; in lima_dlbu_hw_init()
55 int lima_dlbu_resume(struct lima_ip *ip) in lima_dlbu_resume() argument
57 return lima_dlbu_hw_init(ip); in lima_dlbu_resume()
60 void lima_dlbu_suspend(struct lima_ip *ip) in lima_dlbu_suspend() argument
[all …]
Dlima_device.c26 int (*init)(struct lima_ip *ip);
27 void (*fini)(struct lima_ip *ip);
28 int (*resume)(struct lima_ip *ip);
29 void (*suspend)(struct lima_ip *ip);
79 const char *lima_ip_name(struct lima_ip *ip) in lima_ip_name() argument
81 return lima_ip_desc[ip->id].name; in lima_ip_name()
211 struct lima_ip *ip = dev->ip + index; in lima_init_ip() local
220 ip->dev = dev; in lima_init_ip()
221 ip->id = index; in lima_init_ip()
222 ip->iomem = dev->iomem + offset; in lima_init_ip()
[all …]
Dlima_pp.h10 int lima_pp_resume(struct lima_ip *ip);
11 void lima_pp_suspend(struct lima_ip *ip);
12 int lima_pp_init(struct lima_ip *ip);
13 void lima_pp_fini(struct lima_ip *ip);
15 int lima_pp_bcast_resume(struct lima_ip *ip);
16 void lima_pp_bcast_suspend(struct lima_ip *ip);
17 int lima_pp_bcast_init(struct lima_ip *ip);
18 void lima_pp_bcast_fini(struct lima_ip *ip);
Dlima_mmu.h10 int lima_mmu_resume(struct lima_ip *ip);
11 void lima_mmu_suspend(struct lima_ip *ip);
12 int lima_mmu_init(struct lima_ip *ip);
13 void lima_mmu_fini(struct lima_ip *ip);
15 void lima_mmu_flush_tlb(struct lima_ip *ip);
16 void lima_mmu_switch_vm(struct lima_ip *ip, struct lima_vm *vm);
17 void lima_mmu_page_fault_resume(struct lima_ip *ip);
/drivers/pwm/
Dpwm-bcm-iproc.c57 static void iproc_pwmc_enable(struct iproc_pwmc *ip, unsigned int channel) in iproc_pwmc_enable() argument
61 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_enable()
63 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_enable()
69 static void iproc_pwmc_disable(struct iproc_pwmc *ip, unsigned int channel) in iproc_pwmc_disable() argument
73 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_disable()
75 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_disable()
84 struct iproc_pwmc *ip = to_iproc_pwmc(chip); in iproc_pwmc_get_state() local
88 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_get_state()
100 rate = clk_get_rate(ip->clk); in iproc_pwmc_get_state()
107 value = readl(ip->base + IPROC_PWM_PRESCALE_OFFSET); in iproc_pwmc_get_state()
[all …]
/drivers/infiniband/sw/rdmavt/
Dmmap.c72 struct rvt_mmap_info *ip = in rvt_release_mmap_info() local
74 struct rvt_dev_info *rdi = ib_to_rvt(ip->context->device); in rvt_release_mmap_info()
77 list_del(&ip->pending_mmaps); in rvt_release_mmap_info()
80 vfree(ip->obj); in rvt_release_mmap_info()
81 kfree(ip); in rvt_release_mmap_info()
86 struct rvt_mmap_info *ip = vma->vm_private_data; in rvt_vma_open() local
88 kref_get(&ip->ref); in rvt_vma_open()
93 struct rvt_mmap_info *ip = vma->vm_private_data; in rvt_vma_close() local
95 kref_put(&ip->ref, rvt_release_mmap_info); in rvt_vma_close()
115 struct rvt_mmap_info *ip, *pp; in rvt_mmap() local
[all …]
/drivers/infiniband/sw/rxe/
Drxe_mmap.c19 struct rxe_mmap_info *ip = container_of(ref, in rxe_mmap_release() local
21 struct rxe_dev *rxe = to_rdev(ip->context->device); in rxe_mmap_release()
25 if (!list_empty(&ip->pending_mmaps)) in rxe_mmap_release()
26 list_del(&ip->pending_mmaps); in rxe_mmap_release()
30 vfree(ip->obj); /* buf */ in rxe_mmap_release()
31 kfree(ip); in rxe_mmap_release()
40 struct rxe_mmap_info *ip = vma->vm_private_data; in rxe_vma_open() local
42 kref_get(&ip->ref); in rxe_vma_open()
47 struct rxe_mmap_info *ip = vma->vm_private_data; in rxe_vma_close() local
49 kref_put(&ip->ref, rxe_mmap_release); in rxe_vma_close()
[all …]
/drivers/net/wireguard/selftest/
Dallowedips.c84 union nf_inet_addr ip; member
128 node->ip.ip &= node->mask.ip; in horrible_mask_self()
130 node->ip.ip6[0] &= node->mask.ip6[0]; in horrible_mask_self()
131 node->ip.ip6[1] &= node->mask.ip6[1]; in horrible_mask_self()
132 node->ip.ip6[2] &= node->mask.ip6[2]; in horrible_mask_self()
133 node->ip.ip6[3] &= node->mask.ip6[3]; in horrible_mask_self()
138 horrible_match_v4(const struct horrible_allowedips_node *node, struct in_addr *ip) in horrible_match_v4() argument
140 return (ip->s_addr & node->mask.ip) == node->ip.ip; in horrible_match_v4()
144 horrible_match_v6(const struct horrible_allowedips_node *node, struct in6_addr *ip) in horrible_match_v6() argument
146 return (ip->in6_u.u6_addr32[0] & node->mask.ip6[0]) == node->ip.ip6[0] && in horrible_match_v6()
[all …]
/drivers/net/ethernet/intel/ice/
Dice_fdir.c513 switch (input->ip.v4.proto) { in ice_fdir_get_gen_prgm_pkt()
530 switch (input->ip.v6.proto) { in ice_fdir_get_gen_prgm_pkt()
576 input->ip.v4.src_ip); in ice_fdir_get_gen_prgm_pkt()
578 input->ip.v4.src_port); in ice_fdir_get_gen_prgm_pkt()
580 input->ip.v4.dst_ip); in ice_fdir_get_gen_prgm_pkt()
582 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt()
588 input->ip.v4.src_ip); in ice_fdir_get_gen_prgm_pkt()
590 input->ip.v4.src_port); in ice_fdir_get_gen_prgm_pkt()
592 input->ip.v4.dst_ip); in ice_fdir_get_gen_prgm_pkt()
594 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Dsoc15_common.h28 #define SOC15_REG_OFFSET(ip, inst, reg) (adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) argument
30 #define WREG32_FIELD15(ip, idx, reg, field, val) \ argument
31 WREG32(adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \
32 (RREG32(adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg) \
35 #define RREG32_SOC15(ip, inst, reg) \ argument
36 RREG32(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg)
38 #define RREG32_SOC15_NO_KIQ(ip, inst, reg) \ argument
39 RREG32_NO_KIQ(adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg)
41 #define RREG32_SOC15_OFFSET(ip, inst, reg, offset) \ argument
42 RREG32((adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) + offset)
[all …]
Damdgpu_discovery.c252 struct ip *ip; in amdgpu_discovery_reg_base_init() local
291 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_reg_base_init()
292 num_base_address = ip->num_base_address; in amdgpu_discovery_reg_base_init()
295 hw_id_names[le16_to_cpu(ip->hw_id)], in amdgpu_discovery_reg_base_init()
296 le16_to_cpu(ip->hw_id), in amdgpu_discovery_reg_base_init()
297 ip->number_instance, in amdgpu_discovery_reg_base_init()
298 ip->major, ip->minor, in amdgpu_discovery_reg_base_init()
299 ip->revision); in amdgpu_discovery_reg_base_init()
306 ip->base_address[k] = le32_to_cpu(ip->base_address[k]); in amdgpu_discovery_reg_base_init()
307 DRM_DEBUG("\t0x%08x\n", ip->base_address[k]); in amdgpu_discovery_reg_base_init()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_validate_shaders.c51 uint32_t ip; member
187 uint64_t inst = validation_state->shader[validation_state->ip]; in check_tmu_write()
311 uint64_t inst = validation_state->shader[validation_state->ip]; in validate_uniform_address_write()
390 uint64_t inst = validation_state->shader[validation_state->ip]; in check_reg_write()
481 uint64_t inst = validation_state->shader[validation_state->ip]; in track_live_clamps()
556 uint64_t inst = validation_state->shader[validation_state->ip]; in check_instruction_writes()
578 int ip) in check_branch() argument
592 validation_state->ip); in check_branch()
603 uint64_t inst = validation_state->shader[validation_state->ip]; in check_instruction_reads()
638 int ip; in vc4_validate_branches() local
[all …]
/drivers/net/slip/
Dslhc.c238 struct iphdr *ip; in slhc_compress() local
250 ip = (struct iphdr *) icp; in slhc_compress()
251 if (ip->version != 4 || ip->ihl < 5) in slhc_compress()
255 if (ip->protocol != IPPROTO_TCP || (ntohs(ip->frag_off) & 0x3fff)) { in slhc_compress()
257 if(ip->protocol != IPPROTO_TCP) in slhc_compress()
263 nlen = ip->ihl * 4; in slhc_compress()
297 if( ip->saddr == cs->cs_ip.saddr in slhc_compress()
298 && ip->daddr == cs->cs_ip.daddr in slhc_compress()
353 if(ip->version != cs->cs_ip.version || ip->ihl != cs->cs_ip.ihl in slhc_compress()
354 || ip->tos != cs->cs_ip.tos in slhc_compress()
[all …]
/drivers/gpu/drm/amd/display/dc/dml/
Ddisplay_mode_vba.c57 || memcmp(&mode_lib->ip, &mode_lib->vba.ip, sizeof(mode_lib->vba.ip)) != 0 in dml_get_voltage_level()
63 mode_lib->vba.ip = mode_lib->ip; in dml_get_voltage_level()
287 ip_params_st *ip = &mode_lib->vba.ip; in fetch_ip_params() local
290 mode_lib->vba.UseMinimumRequiredDCFCLK = ip->use_min_dcfclk; in fetch_ip_params()
292 mode_lib->vba.ClampMinDCFCLK = ip->clamp_min_dcfclk; in fetch_ip_params()
294 mode_lib->vba.MaxNumDPP = ip->max_num_dpp; in fetch_ip_params()
295 mode_lib->vba.MaxNumOTG = ip->max_num_otg; in fetch_ip_params()
296 mode_lib->vba.MaxNumHDMIFRLOutputs = ip->max_num_hdmi_frl_outputs; in fetch_ip_params()
297 mode_lib->vba.MaxNumWriteback = ip->max_num_wb; in fetch_ip_params()
298 mode_lib->vba.CursorChunkSize = ip->cursor_chunk_size; in fetch_ip_params()
[all …]
/drivers/scsi/
Dscsicam.c219 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument
225 if (scsi_partsize(bdev, capacity, ip)) in scsicam_bios_param()
233 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param()
234 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param()
241 if (ret || ip[0] > 255 || ip[1] > 63) { in scsicam_bios_param()
243 ip[0] = 255; in scsicam_bios_param()
244 ip[1] = 63; in scsicam_bios_param()
246 ip[0] = 64; in scsicam_bios_param()
247 ip[1] = 32; in scsicam_bios_param()
251 ip[2] = 65535; in scsicam_bios_param()
[all …]
/drivers/mtd/
Dinftlmount.c39 struct INFTLPartition *ip; in find_boot_record() local
177 ip = &mh->Partitions[i]; in find_boot_record()
178 ip->virtualUnits = le32_to_cpu(ip->virtualUnits); in find_boot_record()
179 ip->firstUnit = le32_to_cpu(ip->firstUnit); in find_boot_record()
180 ip->lastUnit = le32_to_cpu(ip->lastUnit); in find_boot_record()
181 ip->flags = le32_to_cpu(ip->flags); in find_boot_record()
182 ip->spareUnits = le32_to_cpu(ip->spareUnits); in find_boot_record()
183 ip->Reserved0 = le32_to_cpu(ip->Reserved0); in find_boot_record()
191 i, ip->virtualUnits, ip->firstUnit, in find_boot_record()
192 ip->lastUnit, ip->flags, in find_boot_record()
[all …]
/drivers/dma/ipu/
Dipu_idmac.c270 struct chan_param_mem_interleaved ip; member
310 params->ip.bpp = 2; in ipu_ch_param_set_size()
311 params->ip.pfs = 4; in ipu_ch_param_set_size()
312 params->ip.npb = 15; in ipu_ch_param_set_size()
313 params->ip.sat = 2; /* SAT = 32-bit access */ in ipu_ch_param_set_size()
314 params->ip.ofs0 = 0; /* Red bit offset */ in ipu_ch_param_set_size()
315 params->ip.ofs1 = 5; /* Green bit offset */ in ipu_ch_param_set_size()
316 params->ip.ofs2 = 11; /* Blue bit offset */ in ipu_ch_param_set_size()
317 params->ip.ofs3 = 16; /* Alpha bit offset */ in ipu_ch_param_set_size()
318 params->ip.wid0 = 4; /* Red bit width - 1 */ in ipu_ch_param_set_size()
[all …]
/drivers/media/usb/usbtv/
Dusbtv-video.c456 static void usbtv_iso_cb(struct urb *ip) in usbtv_iso_cb() argument
460 struct usbtv *usbtv = (struct usbtv *)ip->context; in usbtv_iso_cb()
462 switch (ip->status) { in usbtv_iso_cb()
478 for (i = 0; i < ip->number_of_packets; i++) { in usbtv_iso_cb()
479 int size = ip->iso_frame_desc[i].actual_length; in usbtv_iso_cb()
480 unsigned char *data = ip->transfer_buffer + in usbtv_iso_cb()
481 ip->iso_frame_desc[i].offset; in usbtv_iso_cb()
490 ret = usb_submit_urb(ip, GFP_ATOMIC); in usbtv_iso_cb()
497 struct urb *ip; in usbtv_setup_iso_transfer() local
501 ip = usb_alloc_urb(USBTV_ISOC_PACKETS, GFP_KERNEL); in usbtv_setup_iso_transfer()
[all …]

123456789