/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 109 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/ |
D | lima_pp.c | 18 #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 …]
|
D | lima_pmu.c | 11 #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 …]
|
D | lima_gp.c | 17 #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 …]
|
D | lima_mmu.c | 13 #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 …]
|
D | lima_l2_cache.c | 11 #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 …]
|
D | lima_bcast.c | 11 #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 …]
|
D | lima_dlbu.c | 12 #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 …]
|
D | lima_device.c | 27 int (*init)(struct lima_ip *ip); 28 void (*fini)(struct lima_ip *ip); 29 int (*resume)(struct lima_ip *ip); 30 void (*suspend)(struct lima_ip *ip); 80 const char *lima_ip_name(struct lima_ip *ip) in lima_ip_name() argument 82 return lima_ip_desc[ip->id].name; in lima_ip_name() 212 struct lima_ip *ip = dev->ip + index; in lima_init_ip() local 221 ip->dev = dev; in lima_init_ip() 222 ip->id = index; in lima_init_ip() 223 ip->iomem = dev->iomem + offset; in lima_init_ip() [all …]
|
D | lima_pp.h | 10 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);
|
D | lima_mmu.h | 10 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/gpu/drm/amd/amdgpu/ |
D | soc15_common.h | 28 #define SOC15_REG_OFFSET(ip, inst, reg) (adev->reg_offset[ip##_HWIP][inst][reg##_BASE_IDX] + reg) argument 40 #define WREG32_FIELD15(ip, idx, reg, field, val) \ argument 41 __WREG32_SOC15_RLC__(adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \ 43 adev->reg_offset[ip##_HWIP][idx][mm##reg##_BASE_IDX] + mm##reg, \ 44 0, ip##_HWIP) & \ 46 0, ip##_HWIP) 48 #define WREG32_FIELD15_PREREG(ip, idx, reg_name, field, val) \ argument 49 …__WREG32_SOC15_RLC__(adev->reg_offset[ip##_HWIP][idx][reg##reg_name##_BASE_IDX] + reg##reg_name, … 51 adev->reg_offset[ip##_HWIP][idx][reg##reg_name##_BASE_IDX] + reg##reg_name, \ 52 0, ip##_HWIP) & \ [all …]
|
/drivers/pwm/ |
D | pwm-bcm-iproc.c | 47 static void iproc_pwmc_enable(struct iproc_pwmc *ip, unsigned int channel) in iproc_pwmc_enable() argument 51 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_enable() 53 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_enable() 59 static void iproc_pwmc_disable(struct iproc_pwmc *ip, unsigned int channel) in iproc_pwmc_disable() argument 63 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_disable() 65 writel(value, ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_disable() 74 struct iproc_pwmc *ip = to_iproc_pwmc(chip); in iproc_pwmc_get_state() local 78 value = readl(ip->base + IPROC_PWM_CTRL_OFFSET); in iproc_pwmc_get_state() 90 rate = clk_get_rate(ip->clk); in iproc_pwmc_get_state() 97 value = readl(ip->base + IPROC_PWM_PRESCALE_OFFSET); in iproc_pwmc_get_state() [all …]
|
/drivers/infiniband/sw/rdmavt/ |
D | mmap.c | 30 struct rvt_mmap_info *ip = in rvt_release_mmap_info() local 32 struct rvt_dev_info *rdi = ib_to_rvt(ip->context->device); in rvt_release_mmap_info() 35 list_del(&ip->pending_mmaps); in rvt_release_mmap_info() 38 vfree(ip->obj); in rvt_release_mmap_info() 39 kfree(ip); in rvt_release_mmap_info() 44 struct rvt_mmap_info *ip = vma->vm_private_data; in rvt_vma_open() local 46 kref_get(&ip->ref); in rvt_vma_open() 51 struct rvt_mmap_info *ip = vma->vm_private_data; in rvt_vma_close() local 53 kref_put(&ip->ref, rvt_release_mmap_info); in rvt_vma_close() 73 struct rvt_mmap_info *ip, *pp; in rvt_mmap() local [all …]
|
D | srq.c | 71 srq->ip = rvt_create_mmap_info(dev, s, udata, srq->rq.wq); in rvt_create_srq() 72 if (IS_ERR(srq->ip)) { in rvt_create_srq() 73 ret = PTR_ERR(srq->ip); in rvt_create_srq() 77 ret = ib_copy_to_udata(udata, &srq->ip->offset, in rvt_create_srq() 78 sizeof(srq->ip->offset)); in rvt_create_srq() 99 if (srq->ip) { in rvt_create_srq() 101 list_add(&srq->ip->pending_mmaps, &dev->pending_mmaps); in rvt_create_srq() 108 kfree(srq->ip); in rvt_create_srq() 227 if (srq->ip) { in rvt_modify_srq() 228 struct rvt_mmap_info *ip = srq->ip; in rvt_modify_srq() local [all …]
|
/drivers/infiniband/sw/rxe/ |
D | rxe_mmap.c | 18 struct rxe_mmap_info *ip = container_of(ref, in rxe_mmap_release() local 20 struct rxe_dev *rxe = to_rdev(ip->context->device); in rxe_mmap_release() 24 if (!list_empty(&ip->pending_mmaps)) in rxe_mmap_release() 25 list_del(&ip->pending_mmaps); in rxe_mmap_release() 29 vfree(ip->obj); /* buf */ in rxe_mmap_release() 30 kfree(ip); in rxe_mmap_release() 39 struct rxe_mmap_info *ip = vma->vm_private_data; in rxe_vma_open() local 41 kref_get(&ip->ref); in rxe_vma_open() 46 struct rxe_mmap_info *ip = vma->vm_private_data; in rxe_vma_close() local 48 kref_put(&ip->ref, rxe_mmap_release); in rxe_vma_close() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_fdir.c | 883 switch (input->ip.v4.proto) { in ice_fdir_get_gen_prgm_pkt() 898 switch (input->ip.v6.proto) { in ice_fdir_get_gen_prgm_pkt() 942 input->ip.v4.src_ip); in ice_fdir_get_gen_prgm_pkt() 944 input->ip.v4.src_port); in ice_fdir_get_gen_prgm_pkt() 946 input->ip.v4.dst_ip); in ice_fdir_get_gen_prgm_pkt() 948 input->ip.v4.dst_port); in ice_fdir_get_gen_prgm_pkt() 949 ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos); in ice_fdir_get_gen_prgm_pkt() 950 ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl); in ice_fdir_get_gen_prgm_pkt() 957 input->ip.v4.src_ip); in ice_fdir_get_gen_prgm_pkt() 959 input->ip.v4.src_port); in ice_fdir_get_gen_prgm_pkt() [all …]
|
/drivers/net/wireguard/selftest/ |
D | allowedips.c | 84 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/gpu/drm/vc4/ |
D | vc4_validate_shaders.c | 51 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/ |
D | slhc.c | 238 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/scsi/ |
D | scsicam.c | 218 int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip) in scsicam_bios_param() argument 224 if (scsi_partsize(bdev, capacity, ip)) in scsicam_bios_param() 232 ret = setsize((unsigned long)capacity, (unsigned int *)ip + 2, in scsicam_bios_param() 233 (unsigned int *)ip + 0, (unsigned int *)ip + 1); in scsicam_bios_param() 240 if (ret || ip[0] > 255 || ip[1] > 63) { in scsicam_bios_param() 242 ip[0] = 255; in scsicam_bios_param() 243 ip[1] = 63; in scsicam_bios_param() 245 ip[0] = 64; in scsicam_bios_param() 246 ip[1] = 32; in scsicam_bios_param() 250 ip[2] = 65535; in scsicam_bios_param() [all …]
|
/drivers/mtd/ |
D | inftlmount.c | 39 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/gpu/drm/amd/display/dc/dml/ |
D | display_mode_vba.c | 58 || memcmp(&mode_lib->ip, &mode_lib->vba.ip, sizeof(mode_lib->vba.ip)) != 0 in dml_get_voltage_level() 64 mode_lib->vba.ip = mode_lib->ip; in dml_get_voltage_level() 418 ip_params_st *ip = &mode_lib->vba.ip; in fetch_ip_params() local 421 mode_lib->vba.UseMinimumRequiredDCFCLK = ip->use_min_dcfclk; in fetch_ip_params() 422 mode_lib->vba.ClampMinDCFCLK = ip->clamp_min_dcfclk; in fetch_ip_params() 423 mode_lib->vba.MaxNumDPP = ip->max_num_dpp; in fetch_ip_params() 424 mode_lib->vba.MaxNumOTG = ip->max_num_otg; in fetch_ip_params() 425 mode_lib->vba.MaxNumHDMIFRLOutputs = ip->max_num_hdmi_frl_outputs; in fetch_ip_params() 426 mode_lib->vba.MaxNumWriteback = ip->max_num_wb; in fetch_ip_params() 427 mode_lib->vba.CursorChunkSize = ip->cursor_chunk_size; in fetch_ip_params() [all …]
|
/drivers/dma/ipu/ |
D | ipu_idmac.c | 270 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/net/vxlan/ |
D | vxlan_multicast.c | 20 union vxlan_addr *ip = (rip ? : &vxlan->default_dst.remote_ip); in vxlan_igmp_join() local 25 if (ip->sa.sa_family == AF_INET) { in vxlan_igmp_join() 28 .imr_multiaddr.s_addr = ip->sin.sin_addr.s_addr, in vxlan_igmp_join() 43 &ip->sin6.sin6_addr); in vxlan_igmp_join() 54 union vxlan_addr *ip = (rip ? : &vxlan->default_dst.remote_ip); in vxlan_igmp_leave() local 59 if (ip->sa.sa_family == AF_INET) { in vxlan_igmp_leave() 62 .imr_multiaddr.s_addr = ip->sin.sin_addr.s_addr, in vxlan_igmp_leave() 77 &ip->sin6.sin6_addr); in vxlan_igmp_leave() 85 static bool vxlan_group_used_match(union vxlan_addr *ip, int ifindex, in vxlan_group_used_match() argument 91 if (!vxlan_addr_equal(rip, ip)) in vxlan_group_used_match() [all …]
|