/openbmc/linux/drivers/irqchip/ |
H A D | irq-ingenic.c | 65 struct irq_chip_type *ct; in ingenic_intc_of_init() local 114 ct = gc->chip_types; in ingenic_intc_of_init() 115 ct->regs.enable = JZ_REG_INTC_CLEAR_MASK; in ingenic_intc_of_init() 116 ct->regs.disable = JZ_REG_INTC_SET_MASK; in ingenic_intc_of_init() 117 ct->chip.irq_unmask = irq_gc_unmask_enable_reg; in ingenic_intc_of_init() 118 ct->chip.irq_mask = irq_gc_mask_disable_reg; in ingenic_intc_of_init() 119 ct->chip.irq_mask_ack = irq_gc_mask_disable_reg; in ingenic_intc_of_init() 120 ct->chip.irq_set_wake = irq_gc_set_wake; in ingenic_intc_of_init() 121 ct->chip.flags = IRQCHIP_MASK_ON_SUSPEND; in ingenic_intc_of_init()
|
H A D | irq-goldfish-pic.c | 60 struct irq_chip_type *ct; in goldfish_pic_of_init() local 95 ct = gc->chip_types; in goldfish_pic_of_init() 96 ct->regs.enable = GFPIC_REG_IRQ_ENABLE; in goldfish_pic_of_init() 97 ct->regs.disable = GFPIC_REG_IRQ_DISABLE; in goldfish_pic_of_init() 98 ct->chip.irq_unmask = irq_gc_unmask_enable_reg; in goldfish_pic_of_init() 99 ct->chip.irq_mask = irq_gc_mask_disable_reg; in goldfish_pic_of_init()
|
H A D | irq-bcm7120-l2.c | 87 struct irq_chip_type *ct = gc->chip_types; in bcm7120_l2_intc_suspend() local 92 ct->regs.mask); in bcm7120_l2_intc_suspend() 98 struct irq_chip_type *ct = gc->chip_types; in bcm7120_l2_intc_resume() local 102 irq_reg_writel(gc, gc->mask_cache, ct->regs.mask); in bcm7120_l2_intc_resume() 225 struct irq_chip_type *ct; in bcm7120_l2_intc_probe() local 295 ct = gc->chip_types; in bcm7120_l2_intc_probe() 298 ct->regs.mask = data->en_offset[idx]; in bcm7120_l2_intc_probe() 304 ct->chip.irq_mask = irq_gc_mask_clr_bit; in bcm7120_l2_intc_probe() 305 ct->chip.irq_unmask = irq_gc_mask_set_bit; in bcm7120_l2_intc_probe() 306 ct->chip.irq_ack = irq_gc_noop; in bcm7120_l2_intc_probe() [all …]
|
/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_pe_sip.c | 108 struct ip_vs_conn *ct) in ip_vs_sip_ct_match() argument 113 if (ct->af == p->af && in ip_vs_sip_ct_match() 114 ip_vs_addr_equal(p->af, p->caddr, &ct->caddr) && in ip_vs_sip_ct_match() 118 p->vaddr, &ct->vaddr) && in ip_vs_sip_ct_match() 119 ct->vport == p->vport && in ip_vs_sip_ct_match() 120 ct->flags & IP_VS_CONN_F_TEMPLATE && in ip_vs_sip_ct_match() 121 ct->protocol == p->protocol && in ip_vs_sip_ct_match() 122 ct->pe_data && ct->pe_data_len == p->pe_data_len && in ip_vs_sip_ct_match() 123 !memcmp(ct->pe_data, p->pe_data, p->pe_data_len)) in ip_vs_sip_ct_match()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_helper.c | 203 if (test_bit(IPS_HELPER_BIT, &ct->status)) in __nf_ct_try_assign_helper() 212 set_bit(IPS_HELPER_BIT, &ct->status); in __nf_ct_try_assign_helper() 215 help = nfct_help(ct); in __nf_ct_try_assign_helper() 224 help = nf_ct_helper_ext_add(ct, flags); in __nf_ct_try_assign_helper() 248 struct nf_conn_help *help = nfct_help(ct); in unhelp() 251 nf_conntrack_event(IPCT_HELPER, ct); in unhelp() 268 helper->destroy(ct); in nf_ct_helper_destroy() 340 help = nfct_help(ct); in nf_ct_helper_log() 345 nf_log_packet(nf_ct_net(ct), nf_ct_l3num(ct), 0, skb, NULL, NULL, NULL, in nf_ct_helper_log() 438 struct nf_conn *ct, in nf_ct_helper_init() argument [all …]
|
H A D | nf_nat_masquerade.c | 32 struct nf_conn *ct; in nf_nat_masquerade_ipv4() local 41 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv4() 49 if (ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip == 0) in nf_nat_masquerade_ipv4() 60 nat = nf_ct_nat_ext_add(ct); in nf_nat_masquerade_ipv4() 169 static int inet_cmp(struct nf_conn *ct, void *ptr) in inet_cmp() argument 174 if (!device_cmp(ct, ptr)) in inet_cmp() 177 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in inet_cmp() 247 struct nf_conn *ct; in nf_nat_masquerade_ipv6() local 250 ct = nf_ct_get(skb, &ctinfo); in nf_nat_masquerade_ipv6() 254 if (nat_ipv6_dev_get_saddr(nf_ct_net(ct), out, in nf_nat_masquerade_ipv6() [all …]
|
H A D | nf_conntrack_proto_icmp.c | 70 int nf_conntrack_icmp_packet(struct nf_conn *ct, in nf_conntrack_icmp_packet() argument 78 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmp_packet() 93 ct->tuplehash[0].tuple.dst.u.icmp.type); in nf_conntrack_icmp_packet() 94 nf_ct_dump_tuple_ip(&ct->tuplehash[0].tuple); in nf_conntrack_icmp_packet() 101 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmp_packet() 118 struct nf_conn *ct; in nf_conntrack_inet_error() local 168 ct = nf_ct_tuplehash_to_ctrack(h); in nf_conntrack_inet_error() 170 ct_daddr = &ct->tuplehash[dir].tuple.dst.u3; in nf_conntrack_inet_error() 183 nf_ct_put(ct); in nf_conntrack_inet_error() 192 nf_ct_set(skb, ct, ctinfo); in nf_conntrack_inet_error() [all …]
|
H A D | nf_conntrack_extend.c | 92 void *nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp) in nf_ct_ext_add() argument 98 WARN_ON(nf_ct_is_confirmed(ct)); in nf_ct_ext_add() 103 if (ct->ext) { in nf_ct_ext_add() 104 const struct nf_ct_ext *old = ct->ext; in nf_ct_ext_add() 117 new = krealloc(ct->ext, alloc, gfp); in nf_ct_ext_add() 121 if (!ct->ext) { in nf_ct_ext_add() 130 ct->ext = new; in nf_ct_ext_add()
|
H A D | nf_nat_ftp.c | 33 static int nf_nat_ftp_fmt_cmd(struct nf_conn *ct, enum nf_ct_ftp_type type, in nf_nat_ftp_fmt_cmd() argument 48 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in nf_nat_ftp_fmt_cmd() 74 struct nf_conn *ct = exp->master; in nf_nat_ftp() local 81 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in nf_nat_ftp() 95 buflen = nf_nat_ftp_fmt_cmd(ct, type, buffer, sizeof(buffer), in nf_nat_ftp() 102 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff, in nf_nat_ftp() 109 nf_ct_helper_log(skb, ct, "cannot mangle packet"); in nf_nat_ftp()
|
H A D | nf_flow_table_core.c | 56 if (unlikely(nf_ct_is_dying(ct))) in flow_offload_alloc() 63 refcount_inc(&ct->ct_general.use); in flow_offload_alloc() 64 flow->ct = ct; in flow_offload_alloc() 69 if (ct->status & IPS_SRC_NAT) in flow_offload_alloc() 71 if (ct->status & IPS_DST_NAT) in flow_offload_alloc() 176 struct net *net = nf_ct_net(ct); in flow_offload_fixup_ct() 177 int l4num = nf_ct_protonum(ct); in flow_offload_fixup_ct() 221 nf_ct_put(flow->ct); in flow_offload_free() 301 nf_ct_offload_timeout(flow->ct); in flow_offload_add() 351 flow_offload_fixup_ct(flow->ct); in flow_offload_teardown() [all …]
|
H A D | nf_conntrack_broadcast.c | 19 struct nf_conn *ct, in nf_conntrack_broadcast_help() argument 28 struct nf_conn_help *help = nfct_help(ct); in nf_conntrack_broadcast_help() 32 if (skb->sk == NULL || !net_eq(nf_ct_net(ct), sock_net(skb->sk))) in nf_conntrack_broadcast_help() 57 exp = nf_ct_expect_alloc(ct); in nf_conntrack_broadcast_help() 61 exp->tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in nf_conntrack_broadcast_help() 78 nf_ct_refresh(ct, skb, timeout * HZ); in nf_conntrack_broadcast_help()
|
H A D | nf_conntrack_ftp.c | 371 struct nf_conn *ct, in help() argument 441 cmd.l3num = nf_ct_l3num(ct); in help() 474 exp = nf_ct_expect_alloc(ct); in help() 484 daddr = &ct->tuplehash[!dir].tuple.dst.u3; in help() 487 if ((cmd.l3num == nf_ct_l3num(ct)) && in help() 497 &ct->tuplehash[dir].tuple.src.u3.ip); in help() 501 ct->tuplehash[dir].tuple.src.u3.ip6); in help() 516 &ct->tuplehash[!dir].tuple.src.u3, daddr, in help() 522 if (nf_nat_ftp && ct->status & IPS_NAT_MASK) in help() 541 update_nl_seq(ct, seq, ct_ftp_info, dir, skb); in help() [all …]
|
H A D | nf_conntrack_snmp.c | 30 struct nf_conn *ct, 35 struct nf_conn *ct, in snmp_conntrack_help() argument 40 nf_conntrack_broadcast_help(skb, ct, ctinfo, timeout); in snmp_conntrack_help() 43 if (nf_nat_snmp && ct->status & IPS_NAT_MASK) in snmp_conntrack_help() 44 return nf_nat_snmp(skb, protoff, ct, ctinfo); in snmp_conntrack_help()
|
H A D | nf_conntrack_timeout.c | 28 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument 30 struct nf_conn_timeout *timeout_ext = nf_ct_timeout_find(ct); in untimeout() 64 int nf_ct_set_timeout(struct net *net, struct nf_conn *ct, in nf_ct_set_timeout() argument 106 timeout_ext = nf_ct_timeout_ext_add(ct, timeout, GFP_ATOMIC); in nf_ct_set_timeout() 125 void nf_ct_destroy_timeout(struct nf_conn *ct) in nf_ct_destroy_timeout() argument 134 timeout_ext = nf_ct_timeout_find(ct); in nf_ct_destroy_timeout()
|
/openbmc/linux/net/ipv4/ |
H A D | ipmr_base.c | 118 for (iter->ct = 0; iter->ct < mrt->maxvif; ++iter->ct) { in mr_vif_seq_idx() 119 if (!VIF_EXISTS(mrt, iter->ct)) in mr_vif_seq_idx() 122 return &mrt->vif_table[iter->ct]; in mr_vif_seq_idx() 138 while (++iter->ct < mrt->maxvif) { in mr_vif_seq_next() 139 if (!VIF_EXISTS(mrt, iter->ct)) in mr_vif_seq_next() 141 return &mrt->vif_table[iter->ct]; in mr_vif_seq_next() 216 int ct; in mr_fill_mroute() local 240 for (ct = c->mfc_un.res.minvif; ct < c->mfc_un.res.maxvif; ct++) { in mr_fill_mroute() 283 int ct; in mr_mfc_uses_dev() local 285 for (ct = c->mfc_un.res.minvif; ct < c->mfc_un.res.maxvif; ct++) { in mr_mfc_uses_dev() [all …]
|
/openbmc/linux/include/net/netfilter/ |
H A D | nf_nat_helper.h | 11 bool __nf_nat_mangle_tcp_packet(struct sk_buff *skb, struct nf_conn *ct, 18 struct nf_conn *ct, in nf_nat_mangle_tcp_packet() argument 26 return __nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in nf_nat_mangle_tcp_packet() 31 bool nf_nat_mangle_udp_packet(struct sk_buff *skb, struct nf_conn *ct, 39 void nf_nat_follow_master(struct nf_conn *ct, struct nf_conntrack_expect *this);
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | nf_conntrack_bridge.c | 151 const struct nf_conn *ct; in nf_ct_br_defrag4() local 157 ct = nf_ct_get(skb, &ctinfo); in nf_ct_br_defrag4() 158 if (ct) in nf_ct_br_defrag4() 182 const struct nf_conn *ct; in nf_ct_br_defrag6() local 185 ct = nf_ct_get(skb, &ctinfo); in nf_ct_br_defrag6() 186 if (ct) in nf_ct_br_defrag6() 245 struct nf_conn *ct; in nf_ct_bridge_pre() local 250 if ((ct && !nf_ct_is_template(ct)) || in nf_ct_bridge_pre() 299 struct nf_conn *ct; in nf_ct_bridge_in() local 314 if (nf_ct_is_confirmed(ct) || nf_ct_is_template(ct)) in nf_ct_bridge_in() [all …]
|
/openbmc/linux/drivers/macintosh/ |
H A D | windfarm_pm91.c | 544 if (wf_get_control(ct) == 0) in wf_smu_new_control() 545 fan_cpu_main = ct; in wf_smu_new_control() 549 if (wf_get_control(ct) == 0) in wf_smu_new_control() 550 fan_cpu_second = ct; in wf_smu_new_control() 554 if (wf_get_control(ct) == 0) in wf_smu_new_control() 555 fan_cpu_third = ct; in wf_smu_new_control() 559 if (wf_get_control(ct) == 0) in wf_smu_new_control() 560 cpufreq_clamp = ct; in wf_smu_new_control() 564 if (wf_get_control(ct) == 0) in wf_smu_new_control() 565 fan_hd = ct; in wf_smu_new_control() [all …]
|
H A D | windfarm_rm31.c | 571 if (!strcmp(ct->name, "cpu-fan-a-0")) in rm31_new_control() 572 cpu_fans[0][0] = ct; in rm31_new_control() 574 cpu_fans[0][1] = ct; in rm31_new_control() 576 cpu_fans[0][2] = ct; in rm31_new_control() 578 cpu_fans[1][0] = ct; in rm31_new_control() 580 cpu_fans[1][1] = ct; in rm31_new_control() 582 cpu_fans[1][2] = ct; in rm31_new_control() 584 backside_fan = ct; in rm31_new_control() 585 else if (!strcmp(ct->name, "slots-fan")) in rm31_new_control() 586 slots_fan = ct; in rm31_new_control() [all …]
|
H A D | windfarm_pm72.c | 675 cpu_front_fans[0] = ct; in pm72_new_control() 677 cpu_front_fans[1] = ct; in pm72_new_control() 679 cpu_rear_fans[0] = ct; in pm72_new_control() 681 cpu_rear_fans[1] = ct; in pm72_new_control() 683 cpu_pumps[0] = ct; in pm72_new_control() 685 cpu_pumps[1] = ct; in pm72_new_control() 687 backside_fan = ct; in pm72_new_control() 688 else if (!strcmp(ct->name, "slots-fan")) in pm72_new_control() 689 slots_fan = ct; in pm72_new_control() 691 drives_fan = ct; in pm72_new_control() [all …]
|
/openbmc/linux/arch/arm/mach-imx/ |
H A D | tzic.c | 103 struct irq_chip_type *ct; in tzic_init_gc() local 110 ct = gc->chip_types; in tzic_init_gc() 111 ct->chip.irq_mask = irq_gc_mask_disable_reg; in tzic_init_gc() 112 ct->chip.irq_unmask = irq_gc_unmask_enable_reg; in tzic_init_gc() 113 ct->chip.irq_set_wake = irq_gc_set_wake; in tzic_init_gc() 114 ct->chip.irq_suspend = tzic_irq_suspend; in tzic_init_gc() 115 ct->chip.irq_resume = tzic_irq_resume; in tzic_init_gc() 116 ct->regs.disable = TZIC_ENCLEAR0(idx); in tzic_init_gc() 117 ct->regs.enable = TZIC_ENSET0(idx); in tzic_init_gc()
|
/openbmc/linux/drivers/scsi/elx/libefc/ |
H A D | efc_els.c | 899 } *ct; in efc_ns_send_rftid() local 911 els->io.iparam.ct.df_ctl = 0; in efc_ns_send_rftid() 916 ct = els->io.req.virt; in efc_ns_send_rftid() 917 memset(ct, 0, sizeof(*ct)); in efc_ns_send_rftid() 936 } *ct; in efc_ns_send_rffid() local 952 ct = els->io.req.virt; in efc_ns_send_rffid() 954 memset(ct, 0, sizeof(*ct)); in efc_ns_send_rffid() 976 } *ct; in efc_ns_send_gidpt() local 993 ct = els->io.req.virt; in efc_ns_send_gidpt() 995 memset(ct, 0, sizeof(*ct)); in efc_ns_send_gidpt() [all …]
|
/openbmc/linux/arch/arm/plat-orion/ |
H A D | irq.c | 25 struct irq_chip_type *ct; in orion_irq_init() local 34 ct = gc->chip_types; in orion_irq_init() 35 ct->chip.irq_mask = irq_gc_mask_clr_bit; in orion_irq_init() 36 ct->chip.irq_unmask = irq_gc_mask_set_bit; in orion_irq_init()
|
/openbmc/linux/sound/soc/au1x/ |
H A D | psc-i2s.c | 55 unsigned long ct; in au1xpsc_i2s_set_fmt() local 60 ct = pscdata->cfg; in au1xpsc_i2s_set_fmt() 65 ct |= PSC_I2SCFG_XM; /* enable I2S mode */ in au1xpsc_i2s_set_fmt() 70 ct |= PSC_I2SCFG_MLJ; /* LSB (right-) justified */ in au1xpsc_i2s_set_fmt() 76 ct &= ~(PSC_I2SCFG_BI | PSC_I2SCFG_WI); /* IB-IF */ in au1xpsc_i2s_set_fmt() 79 ct |= PSC_I2SCFG_BI | PSC_I2SCFG_WI; in au1xpsc_i2s_set_fmt() 82 ct |= PSC_I2SCFG_BI; in au1xpsc_i2s_set_fmt() 85 ct |= PSC_I2SCFG_WI; in au1xpsc_i2s_set_fmt() 95 ct |= PSC_I2SCFG_MS; /* PSC I2S consumer mode */ in au1xpsc_i2s_set_fmt() 98 ct &= ~PSC_I2SCFG_MS; /* PSC I2S provider mode */ in au1xpsc_i2s_set_fmt() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-sodaville.c | 128 struct irq_chip_type *ct; in sdv_register_irqsupport() local 159 ct = sd->gc->chip_types; in sdv_register_irqsupport() 160 ct->type = IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_LEVEL_LOW; in sdv_register_irqsupport() 161 ct->regs.eoi = GPSTR; in sdv_register_irqsupport() 162 ct->regs.mask = GPIO_INT; in sdv_register_irqsupport() 163 ct->chip.irq_mask = irq_gc_mask_clr_bit; in sdv_register_irqsupport() 164 ct->chip.irq_unmask = irq_gc_mask_set_bit; in sdv_register_irqsupport() 165 ct->chip.irq_eoi = irq_gc_eoi; in sdv_register_irqsupport() 166 ct->chip.irq_set_type = sdv_gpio_pub_set_type; in sdv_register_irqsupport()
|