| /linux/drivers/media/usb/pvrusb2/ |
| H A 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 …]
|
| H A 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() 276 void pvr2_channel_init(struct pvr2_channel *cp,struct pvr2_context *mp) in pvr2_channel_init() argument 279 cp->hdw = mp->hdw; in pvr2_channel_init() 280 cp->mc_head = mp; in pvr2_channel_init() 281 cp->mc_next = NULL; in pvr2_channel_init() 282 cp->mc_prev = mp->mc_last; in pvr2_channel_init() 284 mp->mc_last->mc_next = cp; in pvr2_channel_init() [all …]
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | cassini.c | 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 265 struct cas *xxxcp = (cp); \ [all …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_conn.c | 142 static unsigned int ip_vs_conn_hashkey_conn(const struct ip_vs_conn *cp) in ip_vs_conn_hashkey_conn() argument 146 ip_vs_conn_fill_param(cp->ipvs, cp->af, cp->protocol, in ip_vs_conn_hashkey_conn() 147 &cp->caddr, cp->cport, NULL, 0, &p); in ip_vs_conn_hashkey_conn() 149 if (cp->pe) { in ip_vs_conn_hashkey_conn() 150 p.pe = cp->pe; in ip_vs_conn_hashkey_conn() 151 p.pe_data = cp->pe_data; in ip_vs_conn_hashkey_conn() 152 p.pe_data_len = cp->pe_data_len; in ip_vs_conn_hashkey_conn() 162 static inline int ip_vs_conn_hash(struct ip_vs_conn *cp) in ip_vs_conn_hash() argument 167 if (cp->flags & IP_VS_CONN_F_ONE_PACKET) in ip_vs_conn_hash() 171 hash = ip_vs_conn_hashkey_conn(cp); in ip_vs_conn_hash() [all …]
|
| H A 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, tcphoff)) 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 …]
|
| H A 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, udphoff)) 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 …]
|
| H A D | ip_vs_nfct.c | 70 ip_vs_update_conntrack(struct sk_buff *skb, struct ip_vs_conn *cp, int outin) in ip_vs_update_conntrack() argument 81 if (IP_VS_FWD_METHOD(cp) != IP_VS_CONN_F_MASQ) in ip_vs_update_conntrack() 85 if (cp->flags & IP_VS_CONN_F_ONE_PACKET) in ip_vs_update_conntrack() 93 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack() 108 new_tuple.src.u3 = cp->daddr; in ip_vs_update_conntrack() 111 new_tuple.src.u.tcp.port = cp->dport; in ip_vs_update_conntrack() 113 new_tuple.dst.u3 = cp->vaddr; in ip_vs_update_conntrack() 116 new_tuple.dst.u.tcp.port = cp->vport; in ip_vs_update_conntrack() 128 __func__, ct, ARG_CONN(cp)); in ip_vs_update_conntrack() 143 struct ip_vs_conn *cp; in ip_vs_nfct_expect_callback() local [all …]
|
| H A D | ip_vs_ftp.c | 77 ip_vs_ftp_init_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) in ip_vs_ftp_init_conn() argument 80 cp->flags |= IP_VS_CONN_F_NFCT; in ip_vs_ftp_init_conn() 86 ip_vs_ftp_done_conn(struct ip_vs_app *app, struct ip_vs_conn *cp) in ip_vs_ftp_done_conn() argument 248 static int ip_vs_ftp_out(struct ip_vs_app *app, struct ip_vs_conn *cp, in ip_vs_ftp_out() argument 266 if (cp->state != IP_VS_TCP_S_ESTABLISHED) in ip_vs_ftp_out() 273 if (cp->app_data == (void *) IP_VS_FTP_PASV) { in ip_vs_ftp_out() 284 &from, &port, cp->af, in ip_vs_ftp_out() 289 &from.ip, ntohs(port), &cp->caddr.ip, 0); in ip_vs_ftp_out() 290 } else if (cp->app_data == (void *) IP_VS_FTP_EPSV) { in ip_vs_ftp_out() 300 from = cp->daddr; in ip_vs_ftp_out() [all …]
|
| /linux/kernel/sched/ |
| H A D | cpudeadline.c | 26 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/net/rds/ |
| H A 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(cp->cp_wq, &cp->cp_send_w, 0); in rds_connect_path_complete() 93 queue_delayed_work(cp->cp_wq, &cp->cp_recv_w, 0); in rds_connect_path_complete() [all …]
|
| H A D | connection.c | 114 static void rds_conn_path_reset(struct rds_conn_path *cp) in rds_conn_path_reset() argument 116 struct rds_connection *conn = cp->cp_conn; in rds_conn_path_reset() 122 rds_send_path_reset(cp); in rds_conn_path_reset() 123 cp->cp_flags = 0; in rds_conn_path_reset() 132 struct rds_conn_path *cp, bool is_outgoing) in __rds_conn_path_init() argument 134 spin_lock_init(&cp->cp_lock); in __rds_conn_path_init() 135 cp->cp_next_tx_seq = 1; in __rds_conn_path_init() 136 init_waitqueue_head(&cp->cp_waitq); in __rds_conn_path_init() 137 INIT_LIST_HEAD(&cp->cp_send_queue); in __rds_conn_path_init() 138 INIT_LIST_HEAD(&cp->cp_retrans); in __rds_conn_path_init() [all …]
|
| H A D | send.c | 65 void rds_send_path_reset(struct rds_conn_path *cp) in rds_send_path_reset() argument 70 if (cp->cp_xmit_rm) { in rds_send_path_reset() 71 rm = cp->cp_xmit_rm; in rds_send_path_reset() 72 cp->cp_xmit_rm = NULL; in rds_send_path_reset() 81 cp->cp_xmit_sg = 0; in rds_send_path_reset() 82 cp->cp_xmit_hdr_off = 0; in rds_send_path_reset() 83 cp->cp_xmit_data_off = 0; in rds_send_path_reset() 84 cp->cp_xmit_atomic_sent = 0; in rds_send_path_reset() 85 cp->cp_xmit_rdma_sent = 0; in rds_send_path_reset() 86 cp->cp_xmit_data_sent = 0; in rds_send_path_reset() [all …]
|
| /linux/drivers/net/ethernet/realtek/ |
| H A D | 8139cp.c | 355 #define cpr8(reg) readb(cp->regs + (reg)) 356 #define cpr16(reg) readw(cp->regs + (reg)) 357 #define cpr32(reg) readl(cp->regs + (reg)) 358 #define cpw8(reg,val) writeb((val), cp->regs + (reg)) 359 #define cpw16(reg,val) writew((val), cp->regs + (reg)) 360 #define cpw32(reg,val) writel((val), cp->regs + (reg)) 362 writeb((val), cp->regs + (reg)); \ 363 readb(cp->regs + (reg)); \ 366 writew((val), cp->regs + (reg)); \ 367 readw(cp->regs + (reg)); \ [all …]
|
| /linux/scripts/ |
| H A 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/kernel/debug/kdb/ |
| H A D | kdb_io.c | 204 static void kdb_position_cursor(char *prompt, char *buffer, char *cp) in kdb_position_cursor() argument 207 if (cp > buffer) in kdb_position_cursor() 208 kdb_printf("%.*s", (int)(cp - buffer), buffer); in kdb_position_cursor() 234 char *cp = buffer; in kdb_read() local 254 cp += len; in kdb_read() 256 cp--; in kdb_read() 259 lastchar = cp; in kdb_read() 260 *cp = '\0'; in kdb_read() 268 if (cp > buffer) { in kdb_read() 269 memmove(cp-1, cp, lastchar - cp + 1); in kdb_read() [all …]
|
| /linux/arch/riscv/kvm/ |
| H A D | vcpu_sbi_pmu.c | 20 struct kvm_cpu_context *cp = &vcpu->arch.guest_context; in kvm_sbi_ext_pmu_handler() local 22 unsigned long funcid = cp->a6; in kvm_sbi_ext_pmu_handler() 35 ret = kvm_riscv_vcpu_pmu_ctr_info(vcpu, cp->a0, retdata); in kvm_sbi_ext_pmu_handler() 39 temp = ((uint64_t)cp->a5 << 32) | cp->a4; in kvm_sbi_ext_pmu_handler() 41 temp = cp->a4; in kvm_sbi_ext_pmu_handler() 49 ret = kvm_riscv_vcpu_pmu_ctr_cfg_match(vcpu, cp->a0, cp->a1, in kvm_sbi_ext_pmu_handler() 50 cp->a2, cp->a3, temp, retdata); in kvm_sbi_ext_pmu_handler() 54 temp = ((uint64_t)cp->a4 << 32) | cp->a3; in kvm_sbi_ext_pmu_handler() 56 temp = cp->a3; in kvm_sbi_ext_pmu_handler() 58 ret = kvm_riscv_vcpu_pmu_ctr_start(vcpu, cp->a0, cp->a1, cp->a2, in kvm_sbi_ext_pmu_handler() [all …]
|
| /linux/net/bluetooth/ |
| H A D | hci_sync.c | 914 struct hci_cp_write_eir cp; in hci_update_eir_sync() 930 memset(&cp, 0, sizeof(cp)); in hci_update_eir_sync() 932 eir_create(hdev, cp.data); in hci_update_eir_sync() 934 if (memcmp(cp.data, hdev->eir, sizeof(cp.data)) == 0) in hci_update_eir_sync() 937 memcpy(hdev->eir, cp.data, sizeof(cp.data)); in get_service_classes() 939 return __hci_cmd_sync_status(hdev, HCI_OP_WRITE_EIR, sizeof(cp), &cp, in get_service_classes() 907 struct hci_cp_write_eir cp; hci_update_eir_sync() local 1154 struct hci_cp_le_set_ext_adv_enable *cp; hci_disable_ext_adv_instance_sync() local 1191 struct hci_cp_le_set_adv_set_rand_addr cp; hci_set_adv_set_random_addr_sync() local 1216 hci_set_ext_adv_params_sync(struct hci_dev * hdev,struct adv_info * adv,const struct hci_cp_le_set_ext_adv_params * cp,struct hci_rp_le_set_ext_adv_params * rp) hci_set_ext_adv_params_sync() argument 1298 struct hci_cp_le_set_adv_data cp; hci_set_adv_data_sync() local 1332 struct hci_cp_le_set_ext_adv_params cp; hci_setup_ext_adv_instance_sync() local 1511 struct hci_cp_le_set_scan_rsp_data cp; __hci_set_scan_rsp_data_sync() local 1544 struct hci_cp_le_set_ext_adv_enable *cp; hci_enable_ext_advertising_sync() local 1605 struct hci_cp_le_set_per_adv_enable cp; hci_disable_per_advertising_sync() local 1625 struct hci_cp_le_set_per_adv_params cp; hci_set_per_adv_params_sync() local 1670 struct hci_cp_le_set_per_adv_enable cp; hci_enable_per_advertising_sync() local 1824 struct hci_cp_le_set_adv_param cp; hci_enable_advertising_sync() local 1944 struct hci_cp_le_term_big cp; hci_le_terminate_big_sync() local 2137 struct hci_cp_read_rssi cp; hci_read_rssi_sync() local 2144 hci_read_clock_sync(struct hci_dev * hdev,struct hci_cp_read_clock * cp) hci_read_clock_sync() argument 2152 struct hci_cp_read_tx_power cp; hci_read_tx_power_sync() local 2178 struct hci_cp_le_set_ext_scan_enable cp; hci_le_set_ext_scan_enable_sync() local 2195 struct hci_cp_le_set_scan_enable cp; hci_le_set_scan_enable_sync() local 2303 struct hci_cp_le_del_from_resolv_list cp; hci_le_del_resolve_list_sync() local 2325 struct hci_cp_le_del_from_accept_list cp; hci_le_del_accept_list_sync() local 2366 struct hci_cp_le_add_to_resolv_list cp; hci_le_add_resolve_list_sync() local 2429 struct hci_cp_le_set_privacy_mode cp; hci_le_set_privacy_mode_sync() local 2470 struct hci_cp_le_add_to_accept_list cp; hci_le_add_accept_list_sync() local 2911 hci_le_scan_phy_params(struct hci_cp_le_scan_phy_params * cp,u8 type,u16 interval,u16 window) hci_le_scan_phy_params() argument 2923 struct hci_cp_le_set_ext_scan_params *cp; hci_le_set_ext_scan_param_sync() local 3003 struct hci_cp_le_set_scan_param cp; hci_le_set_scan_param_sync() local 3317 struct hci_cp_write_le_host_supported cp; hci_write_le_host_supported_sync() local 3399 struct hci_cp_write_page_scan_activity cp; hci_write_fast_connectable_sync() local 3500 struct hci_cp_write_local_name cp; hci_update_name_sync() local 3807 struct hci_cp_set_event_filter cp; hci_set_event_filter_sync() local 3858 struct hci_cp_write_sync_flowctl cp; hci_write_sync_flowctl_sync() local 3921 struct hci_cp_write_eir cp; hci_write_eir_sync() local 3962 struct hci_cp_read_local_ext_features cp; hci_read_local_ext_features_sync() local 4188 struct hci_cp_read_stored_link_key cp; hci_read_stored_link_key_sync() local 4204 struct hci_cp_write_def_link_policy cp; hci_setup_link_policy_sync() local 4553 struct hci_cp_write_le_host_supported cp; hci_set_le_support_sync() local 4576 struct hci_cp_le_set_host_feature cp; hci_le_set_host_feature_sync() local 4660 struct hci_cp_delete_stored_link_key cp; hci_delete_stored_link_key_sync() local 4797 struct hci_cp_write_def_err_data_reporting cp; hci_set_err_data_report_sync() local 4839 struct hci_cp_le_write_def_data_len cp; hci_le_set_write_def_data_len_sync() local 4857 struct hci_cp_le_set_default_phy cp; hci_le_set_default_phy_sync() local 5493 struct hci_cp_remote_name_req_cancel cp; hci_remote_name_cancel_sync() local 5558 struct hci_cp_disconnect cp; hci_disconnect_sync() local 5657 struct hci_cp_reject_sync_conn_req cp; hci_reject_sco_sync() local 5676 struct hci_cp_le_reject_cis cp; hci_le_reject_cis_sync() local 5689 struct hci_cp_reject_conn_req cp; hci_reject_conn_sync() local 5839 struct hci_cp_write_current_iac_lap cp; hci_write_iac_sync() local 5961 struct hci_cp_inquiry cp; hci_inquiry_sync() local 6386 struct hci_cp_le_set_ext_adv_params cp; hci_le_ext_directed_advertising_sync() local 6454 struct hci_cp_le_set_adv_param cp; hci_le_directed_advertising_sync() local 6523 struct hci_cp_le_ext_create_conn *cp; hci_le_ext_create_conn_sync() local 6573 struct hci_cp_le_create_conn cp; hci_le_create_conn_sync() local 6783 struct hci_cp_le_remove_cig cp; hci_le_remove_cig_sync() local 6794 struct hci_cp_le_big_term_sync cp; hci_le_big_terminate_sync() local 6805 struct hci_cp_le_pa_term_sync cp; hci_le_pa_terminate_sync() local 6904 struct hci_cp_create_conn cp; hci_acl_create_conn_sync() local 7023 struct hci_cp_le_conn_update cp; hci_le_conn_update_sync() local 7075 struct hci_cp_le_past_params cp; hci_le_past_params_sync() local 7105 struct hci_cp_le_pa_create_sync cp; hci_le_pa_create_sync() local 7290 struct hci_cp_le_past_set_info cp; hci_le_past_set_info_sync() local 7313 struct hci_cp_le_past cp; hci_le_past_sync() local 7381 struct hci_cp_le_read_all_remote_features cp; hci_le_read_all_remote_features_sync() local 7403 struct hci_cp_le_read_remote_features cp; hci_le_read_remote_features_sync() local 7454 struct hci_cp_change_conn_ptype *cp = data; pkt_type_changed() local 7463 struct hci_cp_change_conn_ptype *cp = data; hci_change_conn_ptype_sync() local 7474 struct hci_cp_change_conn_ptype *cp; hci_acl_change_pkt_type() local 7489 struct hci_cp_le_set_phy *cp = data; le_phy_update_complete() local 7498 struct hci_cp_le_set_phy *cp = data; hci_le_set_phy_sync() local 7509 struct hci_cp_le_set_phy *cp; hci_le_set_phy() local [all...] |
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | cnic.c | 191 struct cnic_local *cp = dev->cnic_priv; in cnic_ctx_wr() local 192 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_wr() 206 struct cnic_local *cp = dev->cnic_priv; in cnic_ctx_tbl_wr() local 207 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ctx_tbl_wr() 220 struct cnic_local *cp = dev->cnic_priv; in cnic_ring_ctl() local 221 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_ring_ctl() 238 struct cnic_local *cp = dev->cnic_priv; in cnic_reg_wr_ind() local 239 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_wr_ind() 252 struct cnic_local *cp = dev->cnic_priv; in cnic_reg_rd_ind() local 253 struct cnic_eth_dev *ethdev = cp->ethdev; in cnic_reg_rd_ind() [all …]
|
| /linux/include/sound/ |
| H A 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/drivers/tty/vt/ |
| H A D | ucs.c | 25 u16 cp = *(u16 *)key; in interval16_cmp() local 28 if (cp < entry->first) in interval16_cmp() 30 if (cp > entry->last) in interval16_cmp() 37 u32 cp = *(u32 *)key; in interval32_cmp() local 40 if (cp < entry->first) in interval32_cmp() 42 if (cp > entry->last) in interval32_cmp() 47 static bool cp_in_range16(u16 cp, const struct ucs_interval16 *ranges, size_t size) in cp_in_range16() argument 49 if (cp < ranges[0].first || cp > ranges[size - 1].last) in cp_in_range16() 52 return __inline_bsearch(&cp, ranges, size, sizeof(*ranges), in cp_in_range16() 56 static bool cp_in_range32(u32 cp, const struct ucs_interval32 *ranges, size_t size) in cp_in_range32() argument [all …]
|
| H A D | gen_ucs_fallback_table.py | 41 for cp in range(0x0080, 0x10000): # Skip ASCII range (0x00-0x7F) 42 char = chr(cp) 56 fallback_map[cp] = ord(ascii_version) 86 for cp in range(0x2596, 0x259F+1): 87 overrides[cp] = ord('#') # ▖ ▗ ▘ ▙ etc. - map to # (unidecode: empty string) 136 …for cp in (0x2204, 0x2209, 0x220C, 0x2224, 0x2226, 0x226E, 0x226F, 0x2280, 0x2281, 0x2284, 0x2285): 137 overrides[cp] = ord('!') # Negated math symbols -> ! (not) 140 for cp in (0x2241, 0x2244, 0x2249, 0x2262, 0x2268, 0x2269, 0x226D, 0x228A, 0x228B): 141 overrides[cp] = ord('#') # Negated equality symbols -> # (not equal) 144 for cp in (0x219A, 0x219B, 0x21AE, 0x21CD, 0x21CE, 0x21CF): [all …]
|
| /linux/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_hipd.c | 46 static void sym_complete_error (struct sym_hcb *np, struct sym_ccb *cp); 47 static void sym_complete_ok (struct sym_hcb *np, struct sym_ccb *cp); 48 static int sym_compute_residual(struct sym_hcb *np, struct sym_ccb *cp); 60 static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg) in sym_print_msg() argument 62 sym_print_addr(cp->cmd, "%s: ", label); in sym_print_msg() 1406 static int sym_prepare_nego(struct sym_hcb *np, struct sym_ccb *cp, u_char *msgptr) argument 1408 struct sym_tcb *tp = &np->target[cp->target]; 1449 cp->nego_status = nego; 1452 tp->nego_cp = cp; /* Keep track a nego will be performed */ 1454 sym_print_nego_msg(np, cp->target, [all …]
|
| /linux/tools/perf/util/ |
| H A 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/fs/nilfs2/ |
| H A D | cpfile.c | 73 struct nilfs_checkpoint *cp; in nilfs_cpfile_block_add_valid_checkpoints() local 76 cp = kmap_local_folio(bh->b_folio, in nilfs_cpfile_block_add_valid_checkpoints() 78 count = le32_to_cpu(cp->cp_checkpoints_count) + n; in nilfs_cpfile_block_add_valid_checkpoints() 79 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_add_valid_checkpoints() 80 kunmap_local(cp); in nilfs_cpfile_block_add_valid_checkpoints() 89 struct nilfs_checkpoint *cp; in nilfs_cpfile_block_sub_valid_checkpoints() local 92 cp = kmap_local_folio(bh->b_folio, in nilfs_cpfile_block_sub_valid_checkpoints() 94 WARN_ON(le32_to_cpu(cp->cp_checkpoints_count) < n); in nilfs_cpfile_block_sub_valid_checkpoints() 95 count = le32_to_cpu(cp->cp_checkpoints_count) - n; in nilfs_cpfile_block_sub_valid_checkpoints() 96 cp->cp_checkpoints_count = cpu_to_le32(count); in nilfs_cpfile_block_sub_valid_checkpoints() [all …]
|
| /linux/drivers/s390/cio/ |
| H A D | vfio_ccw_cp.c | 318 static struct ccwchain *ccwchain_alloc(struct channel_program *cp, int len) in ccwchain_alloc() argument 334 list_add_tail(&chain->next, &cp->ccwchain_list); in ccwchain_alloc() 376 static int ccwchain_calc_length(u64 iova, struct channel_program *cp) in ccwchain_calc_length() argument 378 struct ccw1 *ccw = cp->guest_cp; in ccwchain_calc_length() 404 static int tic_target_chain_exists(struct ccw1 *tic, struct channel_program *cp) in tic_target_chain_exists() argument 409 list_for_each_entry(chain, &cp->ccwchain_list, next) { in tic_target_chain_exists() 419 struct channel_program *cp); 421 static int ccwchain_handle_ccw(dma32_t cda, struct channel_program *cp) in ccwchain_handle_ccw() argument 424 &container_of(cp, struct vfio_ccw_private, cp)->vdev; in ccwchain_handle_ccw() 431 ret = vfio_dma_rw(vdev, gcda, cp->guest_cp, CCWCHAIN_LEN_MAX * sizeof(struct ccw1), false); in ccwchain_handle_ccw() [all …]
|