/Linux-v6.1/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ioread.c | 39 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 …]
|
D | pvrusb2-context.c | 237 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-v6.1/drivers/net/ethernet/sun/ |
D | cassini.c | 112 * also, we need to make cp->lock finer-grained. 162 #define CAS_MAX_MTU min(((cp->page_size << 1) - 0x50), 9000) 231 static void cas_set_link_modes(struct cas *cp); 233 static inline void cas_lock_tx(struct cas *cp) in cas_lock_tx() argument 238 spin_lock_nested(&cp->tx_lock[i], i); in cas_lock_tx() 249 #define cas_lock_all_save(cp, flags) \ argument 251 struct cas *xxxcp = (cp); \ 256 static inline void cas_unlock_tx(struct cas *cp) in cas_unlock_tx() argument 261 spin_unlock(&cp->tx_lock[i - 1]); in cas_unlock_tx() 264 #define cas_unlock_all_restore(cp, flags) \ argument [all …]
|
/Linux-v6.1/drivers/s390/char/ |
D | con3270.c | 78 static void con3270_set_timer(struct con3270 *cp, int expires) in con3270_set_timer() argument 81 del_timer(&cp->timer); in con3270_set_timer() 83 mod_timer(&cp->timer, jiffies + expires); in con3270_set_timer() 92 con3270_update_status(struct con3270 *cp) in con3270_update_status() argument 96 str = (cp->nr_up != 0) ? "History" : "Running"; in con3270_update_status() 97 memcpy(cp->status->string + 24, str, 7); in con3270_update_status() 98 codepage_convert(cp->view.ascebc, cp->status->string + 24, 7); in con3270_update_status() 99 cp->update_flags |= CON_UPDATE_STATUS; in con3270_update_status() 103 con3270_create_status(struct con3270 *cp) in con3270_create_status() argument 110 cp->status = alloc_string(&cp->freemem, sizeof(blueprint)); in con3270_create_status() [all …]
|
/Linux-v6.1/net/netfilter/ipvs/ |
D | ip_vs_conn.c | 143 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 …]
|
D | ip_vs_proto_udp.c | 137 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 …]
|
D | ip_vs_proto_tcp.c | 148 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 …]
|
D | ip_vs_nfct.c | 71 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 …]
|
D | ip_vs_xmit.c | 602 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-v6.1/kernel/sched/ |
D | cpudeadline.c | 25 static void cpudl_heapify_down(struct cpudl *cp, int idx) in cpudl_heapify_down() argument 29 int orig_cpu = cp->elements[idx].cpu; in cpudl_heapify_down() 30 u64 orig_dl = cp->elements[idx].dl; in cpudl_heapify_down() 32 if (left_child(idx) >= cp->size) in cpudl_heapify_down() 44 if ((l < cp->size) && dl_time_before(orig_dl, in cpudl_heapify_down() 45 cp->elements[l].dl)) { in cpudl_heapify_down() 47 largest_dl = cp->elements[l].dl; in cpudl_heapify_down() 49 if ((r < cp->size) && dl_time_before(largest_dl, in cpudl_heapify_down() 50 cp->elements[r].dl)) in cpudl_heapify_down() 57 cp->elements[idx].cpu = cp->elements[largest].cpu; in cpudl_heapify_down() [all …]
|
/Linux-v6.1/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 1 /* 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-v6.1/drivers/net/ethernet/broadcom/ |
D | cnic.c | 190 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-v6.1/net/rds/ |
D | threads.c | 74 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 …]
|
D | connection.c | 113 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-v6.1/net/bluetooth/ |
D | amp.c | 255 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 …]
|
D | hci_sync.c | 712 struct hci_cp_write_eir cp; in hci_update_eir_sync() local 728 memset(&cp, 0, sizeof(cp)); in hci_update_eir_sync() 730 eir_create(hdev, cp.data); in hci_update_eir_sync() 732 if (memcmp(cp.data, hdev->eir, sizeof(cp.data)) == 0) in hci_update_eir_sync() 735 memcpy(hdev->eir, cp.data, sizeof(cp.data)); in hci_update_eir_sync() 737 return __hci_cmd_sync_status(hdev, HCI_OP_WRITE_EIR, sizeof(cp), &cp, in hci_update_eir_sync() 958 struct hci_cp_le_set_ext_adv_enable *cp; in hci_disable_ext_adv_instance_sync() local 960 u8 data[sizeof(*cp) + sizeof(*set) * 1]; in hci_disable_ext_adv_instance_sync() 978 cp = (void *)data; in hci_disable_ext_adv_instance_sync() 979 set = (void *)cp->data; in hci_disable_ext_adv_instance_sync() [all …]
|
/Linux-v6.1/tools/perf/util/ |
D | call-path.c | 14 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-v6.1/arch/riscv/kvm/ |
D | vcpu_sbi_replace.c | 22 struct kvm_cpu_context *cp = &vcpu->arch.guest_context; in kvm_sbi_ext_time_handler() local 25 if (cp->a6 != SBI_EXT_TIME_SET_TIMER) in kvm_sbi_ext_time_handler() 29 next_cycle = ((u64)cp->a1 << 32) | (u64)cp->a0; in kvm_sbi_ext_time_handler() 31 next_cycle = (u64)cp->a0; in kvm_sbi_ext_time_handler() 51 struct kvm_cpu_context *cp = &vcpu->arch.guest_context; in kvm_sbi_ext_ipi_handler() local 52 unsigned long hmask = cp->a0; in kvm_sbi_ext_ipi_handler() 53 unsigned long hbase = cp->a1; in kvm_sbi_ext_ipi_handler() 55 if (cp->a6 != SBI_EXT_IPI_SEND_IPI) in kvm_sbi_ext_ipi_handler() 84 struct kvm_cpu_context *cp = &vcpu->arch.guest_context; in kvm_sbi_ext_rfence_handler() local 85 unsigned long hmask = cp->a0; in kvm_sbi_ext_rfence_handler() [all …]
|
D | vcpu_sbi_v01.c | 27 struct kvm_cpu_context *cp = &vcpu->arch.guest_context; in kvm_sbi_ext_v01_handler() local 29 switch (cp->a7) { in kvm_sbi_ext_v01_handler() 41 next_cycle = ((u64)cp->a1 << 32) | (u64)cp->a0; in kvm_sbi_ext_v01_handler() 43 next_cycle = (u64)cp->a0; in kvm_sbi_ext_v01_handler() 51 if (cp->a0) in kvm_sbi_ext_v01_handler() 52 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, in kvm_sbi_ext_v01_handler() 74 if (cp->a0) in kvm_sbi_ext_v01_handler() 75 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, in kvm_sbi_ext_v01_handler() 82 if (cp->a7 == SBI_EXT_0_1_REMOTE_FENCE_I) in kvm_sbi_ext_v01_handler() 84 else if (cp->a7 == SBI_EXT_0_1_REMOTE_SFENCE_VMA) { in kvm_sbi_ext_v01_handler() [all …]
|
/Linux-v6.1/net/sched/ |
D | cls_tcindex.c | 281 static void tcindex_free_perfect_hash(struct tcindex_data *cp); 296 static void tcindex_free_perfect_hash(struct tcindex_data *cp) in tcindex_free_perfect_hash() argument 300 for (i = 0; i < cp->hash; i++) in tcindex_free_perfect_hash() 301 tcf_exts_destroy(&cp->perfect[i].exts); in tcindex_free_perfect_hash() 302 kfree(cp->perfect); in tcindex_free_perfect_hash() 305 static int tcindex_alloc_perfect_hash(struct net *net, struct tcindex_data *cp) in tcindex_alloc_perfect_hash() argument 309 cp->perfect = kcalloc(cp->hash, sizeof(struct tcindex_filter_result), in tcindex_alloc_perfect_hash() 311 if (!cp->perfect) in tcindex_alloc_perfect_hash() 314 for (i = 0; i < cp->hash; i++) { in tcindex_alloc_perfect_hash() 315 err = tcf_exts_init(&cp->perfect[i].exts, net, in tcindex_alloc_perfect_hash() [all …]
|
/Linux-v6.1/scripts/ |
D | unifdef.c | 642 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-v6.1/drivers/firmware/efi/libstub/ |
D | string.c | 65 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-v6.1/drivers/accessibility/speakup/ |
D | kobjects.c | 34 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-v6.1/include/sound/ |
D | seq_midi_emul.h | 134 #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-v6.1/kernel/debug/kdb/ |
D | kdb_io.c | 197 char *cp = buffer; in kdb_read() local 218 cp += len; in kdb_read() 220 cp--; in kdb_read() 223 lastchar = cp; in kdb_read() 224 *cp = '\0'; in kdb_read() 232 if (cp > buffer) { in kdb_read() 233 if (cp < lastchar) { in kdb_read() 234 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read() 235 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read() 238 --cp; in kdb_read() [all …]
|