Home
last modified time | relevance | path

Searched full:cp (Results 1 – 25 of 881) sorted by relevance

12345678910>>...36

/Linux-v5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-ioread.c39 static int pvr2_ioread_init(struct pvr2_ioread *cp) in pvr2_ioread_init() argument
43 cp->stream = NULL; in pvr2_ioread_init()
44 mutex_init(&cp->mutex); in pvr2_ioread_init()
47 cp->buffer_storage[idx] = kmalloc(BUFFER_SIZE,GFP_KERNEL); in pvr2_ioread_init()
48 if (!(cp->buffer_storage[idx])) break; in pvr2_ioread_init()
54 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_init()
55 kfree(cp->buffer_storage[idx]); in pvr2_ioread_init()
62 static void pvr2_ioread_done(struct pvr2_ioread *cp) in pvr2_ioread_done() argument
66 pvr2_ioread_setup(cp,NULL); in pvr2_ioread_done()
68 if (!(cp->buffer_storage[idx])) continue; in pvr2_ioread_done()
[all …]
Dpvrusb2-context.c237 struct pvr2_channel *cp; in pvr2_context_reset_input_limits() local
241 for (cp = mp->mc_first; cp; cp = cp->mc_next) { in pvr2_context_reset_input_limits()
242 if (!cp->input_mask) continue; in pvr2_context_reset_input_limits()
243 tmsk &= cp->input_mask; in pvr2_context_reset_input_limits()
275 void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) in pvr2_channel_init() argument
278 cp->hdw = mp->hdw; in pvr2_channel_init()
279 cp->mc_head = mp; in pvr2_channel_init()
280 cp->mc_next = NULL; in pvr2_channel_init()
281 cp->mc_prev = mp->mc_last; in pvr2_channel_init()
283 mp->mc_last->mc_next = cp; in pvr2_channel_init()
[all …]
/Linux-v5.10/drivers/net/ethernet/sun/
Dcassini.c111 * also, we need to make cp->lock finer-grained.
161 #define CAS_MAX_MTU min(((cp->page_size << 1) - 0x50), 9000)
230 static void cas_set_link_modes(struct cas *cp);
232 static inline void cas_lock_tx(struct cas *cp) in cas_lock_tx() argument
237 spin_lock_nested(&cp->tx_lock[i], i); in cas_lock_tx()
248 #define cas_lock_all_save(cp, flags) \ argument
250 struct cas *xxxcp = (cp); \
255 static inline void cas_unlock_tx(struct cas *cp) in cas_unlock_tx() argument
260 spin_unlock(&cp->tx_lock[i - 1]); in cas_unlock_tx()
263 #define cas_unlock_all_restore(cp, flags) \ argument
[all …]
/Linux-v5.10/drivers/s390/char/
Dcon3270.c77 static void con3270_set_timer(struct con3270 *cp, int expires) in con3270_set_timer() argument
80 del_timer(&cp->timer); in con3270_set_timer()
82 mod_timer(&cp->timer, jiffies + expires); in con3270_set_timer()
91 con3270_update_status(struct con3270 *cp) in con3270_update_status() argument
95 str = (cp->nr_up != 0) ? "History" : "Running"; in con3270_update_status()
96 memcpy(cp->status->string + 24, str, 7); in con3270_update_status()
97 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status()
98 cp->update_flags |= CON_UPDATE_STATUS; in con3270_update_status()
102 con3270_create_status(struct con3270 *cp) in con3270_create_status() argument
109 cp->status = alloc_string(&cp->freemem, sizeof(blueprint)); in con3270_create_status()
[all …]
/Linux-v5.10/net/netfilter/ipvs/
Dip_vs_conn.c143 static unsigned int ip_vs_conn_hashkey_conn(const struct ip_vs_conn *cp) in ip_vs_conn_hashkey_conn() argument
147 ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol, in ip_vs_conn_hashkey_conn()
148 &cp->caddr, cp->cport, NULL, 0, &p); in ip_vs_conn_hashkey_conn()
150 if (cp->pe) { in ip_vs_conn_hashkey_conn()
151 p.pe = cp->pe; in ip_vs_conn_hashkey_conn()
152 p.pe_data = cp->pe_data; in ip_vs_conn_hashkey_conn()
153 p.pe_data_len = cp->pe_data_len; in ip_vs_conn_hashkey_conn()
163 static inline int ip_vs_conn_hash(struct ip_vs_conn *cp) in ip_vs_conn_hash() argument
168 if (cp->flags & IP_VS_CONN_F_ONE_PACKET) in ip_vs_conn_hash()
172 hash = ip_vs_conn_hashkey_conn(cp); in ip_vs_conn_hash()
[all …]
Dip_vs_proto_udp.c137 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph) in udp_snat_handler() argument
145 if (cp->af == AF_INET6 && iph->fragoffs) in udp_snat_handler()
154 if (unlikely(cp->app != NULL)) { in udp_snat_handler()
158 if (!udp_csum_check(cp->af, skb, pp)) in udp_snat_handler()
164 if (!(ret = ip_vs_app_pkt_out(cp, skb, iph))) in udp_snat_handler()
174 udph->source = cp->vport; in udp_snat_handler()
180 udp_partial_csum_update(cp->af, udph, &cp->daddr, &cp->vaddr, in udp_snat_handler()
185 udp_fast_csum_update(cp->af, udph, &cp->daddr, &cp->vaddr, in udp_snat_handler()
186 cp->dport, cp->vport); in udp_snat_handler()
188 skb->ip_summed = cp->app ? in udp_snat_handler()
[all …]
Dip_vs_proto_tcp.c148 struct ip_vs_conn *cp, struct ip_vs_iphdr *iph) in tcp_snat_handler() argument
156 if (cp->af == AF_INET6 && iph->fragoffs) in tcp_snat_handler()
165 if (unlikely(cp->app != NULL)) { in tcp_snat_handler()
169 if (!tcp_csum_check(cp->af, skb, pp)) in tcp_snat_handler()
173 if (!(ret = ip_vs_app_pkt_out(cp, skb, iph))) in tcp_snat_handler()
183 tcph->source = cp->vport; in tcp_snat_handler()
187 tcp_partial_csum_update(cp->af, tcph, &cp->daddr, &cp->vaddr, in tcp_snat_handler()
192 tcp_fast_csum_update(cp->af, tcph, &cp->daddr, &cp->vaddr, in tcp_snat_handler()
193 cp->dport, cp->vport); in tcp_snat_handler()
195 skb->ip_summed = cp->app ? in tcp_snat_handler()
[all …]
Dip_vs_nfct.c71 ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp, int outin) in ip_vs_update_conntrack() argument
82 if (IP_VS_FWD_METHOD(cp) != IP_VS_CONN_F_MASQ) in ip_vs_update_conntrack()
86 if (cp->flags & IP_VS_CONN_F_ONE_PACKET) in ip_vs_update_conntrack()
94 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack()
109 new_tuple.src.u3 = cp->daddr; in ip_vs_update_conntrack()
112 new_tuple.src.u.tcp.port = cp->dport; in ip_vs_update_conntrack()
114 new_tuple.dst.u3 = cp->vaddr; in ip_vs_update_conntrack()
117 new_tuple.dst.u.tcp.port = cp->vport; in ip_vs_update_conntrack()
128 IP_VS_DBG_BUF(7, "%s: Updated conntrack ct=%p for cp=" FMT_CONN "\n", in ip_vs_update_conntrack()
129 __func__, ct, ARG_CONN(cp)); in ip_vs_update_conntrack()
[all …]
Dip_vs_xmit.c602 struct ip_vs_conn *cp) in ip_vs_tunnel_xmit_prepare() argument
607 if (unlikely(cp->flags & IP_VS_CONN_F_NFCT)) in ip_vs_tunnel_xmit_prepare()
635 struct ip_vs_conn *cp, int local) in ip_vs_nat_send_or_cont() argument
640 if (likely(!(cp->flags & IP_VS_CONN_F_NFCT))) in ip_vs_nat_send_or_cont()
643 ip_vs_update_conntrack(skb, cp, 1); in ip_vs_nat_send_or_cont()
648 if (!local || cp->vport != cp->dport || in ip_vs_nat_send_or_cont()
649 !ip_vs_addr_equal(cp->af, &cp->vaddr, &cp->daddr)) in ip_vs_nat_send_or_cont()
656 NF_HOOK(pf, NF_INET_LOCAL_OUT, cp->ipvs->net, NULL, skb, in ip_vs_nat_send_or_cont()
666 struct ip_vs_conn *cp, int local) in ip_vs_send_or_cont() argument
671 if (likely(!(cp->flags & IP_VS_CONN_F_NFCT))) in ip_vs_send_or_cont()
[all …]
/Linux-v5.10/kernel/sched/
Dcpudeadline.c26 static void cpudl_heapify_down(struct cpudl *cp, int idx) in cpudl_heapify_down() argument
30 int orig_cpu = cp->elements[idx].cpu; in cpudl_heapify_down()
31 u64 orig_dl = cp->elements[idx].dl; in cpudl_heapify_down()
33 if (left_child(idx) >= cp->size) in cpudl_heapify_down()
45 if ((l < cp->size) && dl_time_before(orig_dl, in cpudl_heapify_down()
46 cp->elements[l].dl)) { in cpudl_heapify_down()
48 largest_dl = cp->elements[l].dl; in cpudl_heapify_down()
50 if ((r < cp->size) && dl_time_before(largest_dl, in cpudl_heapify_down()
51 cp->elements[r].dl)) in cpudl_heapify_down()
58 cp->elements[idx].cpu = cp->elements[largest].cpu; in cpudl_heapify_down()
[all …]
/Linux-v5.10/drivers/net/ethernet/realtek/
D8139cp.c1 /* 8139cp.c: A Linux PCI Ethernet driver for the RealTek 8139C+ chips. */
51 #define DRV_NAME "8139cp"
92 MODULE_PARM_DESC (debug, "8139cp: bitmapped message enable number");
98 MODULE_PARM_DESC (multicast_filter_limit, "8139cp: maximum number of filtered multicast addresses");
115 #define TX_BUFFS_AVAIL(CP) \ argument
116 (((CP)->tx_tail <= (CP)->tx_head) ? \
117 (CP)->tx_tail + (CP_TX_RING_SIZE - 1) - (CP)->tx_head : \
118 (CP)->tx_tail - (CP)->tx_head - 1)
355 #define cpr8(reg) readb(cp->regs + (reg))
356 #define cpr16(reg) readw(cp->regs + (reg))
[all …]
/Linux-v5.10/drivers/net/ethernet/broadcom/
Dcnic.c190 struct cnic_local *cp = dev->cnic_priv; in cnic_ctx_wr() local
191 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_wr()
205 struct cnic_local *cp = dev->cnic_priv; in cnic_ctx_tbl_wr() local
206 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr()
219 struct cnic_local *cp = dev->cnic_priv; in cnic_ring_ctl() local
220 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl()
237 struct cnic_local *cp = dev->cnic_priv; in cnic_reg_wr_ind() local
238 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind()
251 struct cnic_local *cp = dev->cnic_priv; in cnic_reg_rd_ind() local
252 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind()
[all …]
/Linux-v5.10/net/rds/
Dthreads.c74 void rds_connect_path_complete(struct rds_conn_path *cp, int curr) in rds_connect_path_complete() argument
76 if (!rds_conn_path_transition(cp, curr, RDS_CONN_UP)) { in rds_connect_path_complete()
80 atomic_read(&cp->cp_state)); in rds_connect_path_complete()
81 rds_conn_path_drop(cp, false); in rds_connect_path_complete()
86 cp->cp_conn, &cp->cp_conn->c_laddr, &cp->cp_conn->c_faddr); in rds_connect_path_complete()
88 cp->cp_reconnect_jiffies = 0; in rds_connect_path_complete()
89 set_bit(0, &cp->cp_conn->c_map_queued); in rds_connect_path_complete()
91 if (!rds_destroy_pending(cp->cp_conn)) { in rds_connect_path_complete()
92 queue_delayed_work(rds_wq, &cp->cp_send_w, 0); in rds_connect_path_complete()
93 queue_delayed_work(rds_wq, &cp->cp_recv_w, 0); in rds_connect_path_complete()
[all …]
Dconnection.c113 static void rds_conn_path_reset(struct rds_conn_path *cp) in rds_conn_path_reset() argument
115 struct rds_connection *conn = cp->cp_conn; in rds_conn_path_reset()
121 rds_send_path_reset(cp); in rds_conn_path_reset()
122 cp->cp_flags = 0; in rds_conn_path_reset()
131 struct rds_conn_path *cp, bool is_outgoing) in __rds_conn_path_init() argument
133 spin_lock_init(&cp->cp_lock); in __rds_conn_path_init()
134 cp->cp_next_tx_seq = 1; in __rds_conn_path_init()
135 init_waitqueue_head(&cp->cp_waitq); in __rds_conn_path_init()
136 INIT_LIST_HEAD(&cp->cp_send_queue); in __rds_conn_path_init()
137 INIT_LIST_HEAD(&cp->cp_retrans); in __rds_conn_path_init()
[all …]
/Linux-v5.10/net/bluetooth/
Damp.c255 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc_frag() local
262 cp.phy_handle = phy_handle; in amp_read_loc_assoc_frag()
263 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc_frag()
264 cp.len_so_far = cpu_to_le16(loc_assoc->offset); in amp_read_loc_assoc_frag()
267 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc_frag()
275 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc() local
280 memset(&cp, 0, sizeof(cp)); in amp_read_loc_assoc()
282 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); in amp_read_loc_assoc()
286 hci_req_add(&req, HCI_OP_READ_LOCAL_AMP_ASSOC, sizeof(cp), &cp); in amp_read_loc_assoc()
295 struct hci_cp_read_local_amp_assoc cp; in amp_read_loc_assoc_final_data() local
[all …]
Dhci_conn.c202 struct hci_cp_create_conn cp; in hci_acl_create_connection() local
214 memset(&cp, 0, sizeof(cp)); in hci_acl_create_connection()
215 bacpy(&cp.bdaddr, &conn->dst); in hci_acl_create_connection()
216 cp.pscan_rep_mode = 0x02; in hci_acl_create_connection()
221 cp.pscan_rep_mode = ie->data.pscan_rep_mode; in hci_acl_create_connection()
222 cp.pscan_mode = ie->data.pscan_mode; in hci_acl_create_connection()
223 cp.clock_offset = ie->data.clock_offset | in hci_acl_create_connection()
230 cp.pkt_type = cpu_to_le16(conn->pkt_type); in hci_acl_create_connection()
232 cp.role_switch = 0x01; in hci_acl_create_connection()
234 cp.role_switch = 0x00; in hci_acl_create_connection()
[all …]
/Linux-v5.10/tools/perf/util/
Dcall-path.c14 static void call_path__init(struct call_path *cp, struct call_path *parent, in call_path__init() argument
17 cp->parent = parent; in call_path__init()
18 cp->sym = sym; in call_path__init()
19 cp->ip = sym ? 0 : ip; in call_path__init()
20 cp->db_id = 0; in call_path__init()
21 cp->in_kernel = in_kernel; in call_path__init()
22 RB_CLEAR_NODE(&cp->rb_node); in call_path__init()
23 cp->children = RB_ROOT; in call_path__init()
55 struct call_path *cp; in call_path__new() local
70 cp = &cpb->cp[n]; in call_path__new()
[all …]
/Linux-v5.10/scripts/
Dunifdef.c642 const char *cp; in parseline() local
659 cp = skipcomment(tline); in parseline()
661 if (*cp == '#') { in parseline()
664 cp = skipcomment(cp + 1); in parseline()
665 } else if (*cp != '\0') in parseline()
669 keyword = tline + (cp - tline); in parseline()
670 cp = skipsym(cp); in parseline()
671 kwlen = cp - keyword; in parseline()
673 if (strncmp(cp, "\\\r\n", 3) == 0 || in parseline()
674 strncmp(cp, "\\\n", 2) == 0) in parseline()
[all …]
/Linux-v5.10/drivers/mailbox/
Dimx-mailbox.c76 int (*tx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp, void *data);
77 int (*rx)(struct imx_mu_priv *priv, struct imx_mu_con_priv *cp);
116 struct imx_mu_con_priv *cp, in imx_mu_generic_tx() argument
121 switch (cp->type) { in imx_mu_generic_tx()
123 imx_mu_write(priv, *arg, priv->dcfg->xTR[cp->idx]); in imx_mu_generic_tx()
124 imx_mu_xcr_rmw(priv, IMX_MU_xCR_TIEn(cp->idx), 0); in imx_mu_generic_tx()
127 imx_mu_xcr_rmw(priv, IMX_MU_xCR_GIRn(cp->idx), 0); in imx_mu_generic_tx()
128 tasklet_schedule(&cp->txdb_tasklet); in imx_mu_generic_tx()
131 dev_warn_ratelimited(priv->dev, "Send data on wrong channel type: %d\n", cp->type); in imx_mu_generic_tx()
139 struct imx_mu_con_priv *cp) in imx_mu_generic_rx() argument
[all …]
/Linux-v5.10/drivers/firmware/efi/libstub/
Dstring.c65 static unsigned int simple_guess_base(const char *cp) in simple_guess_base() argument
67 if (cp[0] == '0') { in simple_guess_base()
68 if (TOLOWER(cp[1]) == 'x' && isxdigit(cp[2])) in simple_guess_base()
79 * @cp: The start of the string
84 unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) in simple_strtoull() argument
89 base = simple_guess_base(cp); in simple_strtoull()
91 if (base == 16 && cp[0] == '0' && TOLOWER(cp[1]) == 'x') in simple_strtoull()
92 cp += 2; in simple_strtoull()
94 while (isxdigit(*cp)) { in simple_strtoull()
97 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10; in simple_strtoull()
[all …]
/Linux-v5.10/net/sched/
Dcls_tcindex.c293 static void tcindex_free_perfect_hash(struct tcindex_data *cp) in tcindex_free_perfect_hash() argument
297 for (i = 0; i < cp->hash; i++) in tcindex_free_perfect_hash()
298 tcf_exts_destroy(&cp->perfect[i].exts); in tcindex_free_perfect_hash()
299 kfree(cp->perfect); in tcindex_free_perfect_hash()
302 static int tcindex_alloc_perfect_hash(struct net *net, struct tcindex_data *cp) in tcindex_alloc_perfect_hash() argument
306 cp->perfect = kcalloc(cp->hash, sizeof(struct tcindex_filter_result), in tcindex_alloc_perfect_hash()
308 if (!cp->perfect) in tcindex_alloc_perfect_hash()
311 for (i = 0; i < cp->hash; i++) { in tcindex_alloc_perfect_hash()
312 err = tcf_exts_init(&cp->perfect[i].exts, net, in tcindex_alloc_perfect_hash()
316 cp->perfect[i].p = cp; in tcindex_alloc_perfect_hash()
[all …]
/Linux-v5.10/include/sound/
Dseq_midi_emul.h134 #define SNDRV_GM_BANK_SELECT(cp) (((cp)->control[0]<<7)|((cp)->control[32])) argument
135 #define SNDRV_GM_MODULATION_WHEEL(cp) (((cp)->control[1]<<7)|((cp)->control[33])) argument
136 #define SNDRV_GM_BREATH(cp) (((cp)->control[2]<<7)|((cp)->control[34])) argument
137 #define SNDRV_GM_FOOT_PEDAL(cp) (((cp)->control[4]<<7)|((cp)->control[36])) argument
138 #define SNDRV_GM_PORTAMENTO_TIME(cp) (((cp)->control[5]<<7)|((cp)->control[37])) argument
139 #define SNDRV_GM_DATA_ENTRY(cp) (((cp)->control[6]<<7)|((cp)->control[38])) argument
140 #define SNDRV_GM_VOLUME(cp) (((cp)->control[7]<<7)|((cp)->control[39])) argument
141 #define SNDRV_GM_BALANCE(cp) (((cp)->control[8]<<7)|((cp)->control[40])) argument
142 #define SNDRV_GM_PAN(cp) (((cp)->control[10]<<7)|((cp)->control[42])) argument
143 #define SNDRV_GM_EXPRESSION(cp) (((cp)->control[11]<<7)|((cp)->control[43])) argument
/Linux-v5.10/arch/s390/boot/
Dstring.c51 static unsigned int simple_guess_base(const char *cp) in simple_guess_base() argument
53 if (cp[0] == '0') { in simple_guess_base()
54 if (TOLOWER(cp[1]) == 'x' && isxdigit(cp[2])) in simple_guess_base()
65 * @cp: The start of the string
70 unsigned long long simple_strtoull(const char *cp, char **endp, in simple_strtoull() argument
76 base = simple_guess_base(cp); in simple_strtoull()
78 if (base == 16 && cp[0] == '0' && TOLOWER(cp[1]) == 'x') in simple_strtoull()
79 cp += 2; in simple_strtoull()
81 while (isxdigit(*cp)) { in simple_strtoull()
84 value = isdigit(*cp) ? *cp - '0' : TOLOWER(*cp) - 'a' + 10; in simple_strtoull()
[all …]
/Linux-v5.10/drivers/accessibility/speakup/
Dkobjects.c34 char *cp; in chars_chartab_show() local
49 cp = "B_CTL"; in chars_chartab_show()
51 cp = "WDLM"; in chars_chartab_show()
53 cp = "A_PUNC"; in chars_chartab_show()
55 cp = "PUNC"; in chars_chartab_show()
57 cp = "NUM"; in chars_chartab_show()
59 cp = "A_CAP"; in chars_chartab_show()
61 cp = "ALPHA"; in chars_chartab_show()
63 cp = "B_CAPSYM"; in chars_chartab_show()
65 cp = "B_SYM"; in chars_chartab_show()
[all …]
/Linux-v5.10/kernel/debug/kdb/
Dkdb_io.c198 char *cp = buffer; in kdb_read() local
219 cp += len; in kdb_read()
221 cp--; in kdb_read()
224 lastchar = cp; in kdb_read()
225 *cp = '\0'; in kdb_read()
233 if (cp > buffer) { in kdb_read()
234 if (cp < lastchar) { in kdb_read()
235 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
236 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
239 --cp; in kdb_read()
[all …]

12345678910>>...36