Home
last modified time | relevance | path

Searched refs:payload (Results 1 – 25 of 231) sorted by relevance

12345678910

/drivers/net/ethernet/mellanox/mlxsw/
Dreg.h54 #define MLXSW_REG_ZERO(type, payload) memset(payload, 0, MLXSW_REG(type)->len) argument
76 static inline void mlxsw_reg_sgcr_pack(char *payload, bool llb) in mlxsw_reg_sgcr_pack() argument
78 MLXSW_REG_ZERO(sgcr, payload); in mlxsw_reg_sgcr_pack()
79 mlxsw_reg_sgcr_llb_set(payload, !!llb); in mlxsw_reg_sgcr_pack()
151 static inline void mlxsw_reg_sspr_pack(char *payload, u8 local_port) in mlxsw_reg_sspr_pack() argument
153 MLXSW_REG_ZERO(sspr, payload); in mlxsw_reg_sspr_pack()
154 mlxsw_reg_sspr_m_set(payload, 1); in mlxsw_reg_sspr_pack()
155 mlxsw_reg_sspr_local_port_set(payload, local_port); in mlxsw_reg_sspr_pack()
156 mlxsw_reg_sspr_sub_port_set(payload, 0); in mlxsw_reg_sspr_pack()
157 mlxsw_reg_sspr_system_port_set(payload, local_port); in mlxsw_reg_sspr_pack()
[all …]
/drivers/media/radio/wl128x/
Dfmdrv_tx.c29 u16 payload; in fm_tx_set_stereo_mono() local
38 payload = (1 - mode); in fm_tx_set_stereo_mono()
39 ret = fmc_send_cmd(fmdev, MONO_SET, REG_WR, &payload, in fm_tx_set_stereo_mono()
40 sizeof(payload), NULL, NULL); in fm_tx_set_stereo_mono()
51 u16 payload; in set_rds_text() local
60 payload = (u16)0x1; in set_rds_text()
61 ret = fmc_send_cmd(fmdev, DISPLAY_MODE, REG_WR, &payload, in set_rds_text()
62 sizeof(payload), NULL, NULL); in set_rds_text()
71 u16 payload; in set_rds_data_mode() local
75 payload = (u16)0xcafe; in set_rds_data_mode()
[all …]
Dfmdrv_rx.c49 u16 payload, curr_frq, intr_flag; in fm_rx_set_freq() local
60 payload = FM_RX_AUDIO_ENABLE_I2S_AND_ANALOG; in fm_rx_set_freq()
62 ret = fmc_send_cmd(fmdev, AUDIO_ENABLE_SET, REG_WR, &payload, in fm_rx_set_freq()
63 sizeof(payload), NULL, NULL); in fm_rx_set_freq()
68 payload = FM_RX_IFFREQ_HILO_AUTOMATIC; in fm_rx_set_freq()
69 ret = fmc_send_cmd(fmdev, HILO_SET, REG_WR, &payload, in fm_rx_set_freq()
70 sizeof(payload), NULL, NULL); in fm_rx_set_freq()
75 payload = (freq - fmdev->rx.region.bot_freq) / FM_FREQ_MUL; in fm_rx_set_freq()
77 ret = fmc_send_cmd(fmdev, FREQ_SET, REG_WR, &payload, in fm_rx_set_freq()
78 sizeof(payload), NULL, NULL); in fm_rx_set_freq()
[all …]
Dfmdrv_common.c390 static int fm_send_cmd(struct fmdev *fmdev, u8 fm_op, u16 type, void *payload, in fm_send_cmd() argument
401 if (test_bit(FM_FW_DW_INPROGRESS, &fmdev->flag) && payload == NULL) { in fm_send_cmd()
407 FM_CMD_MSG_HDR_SIZE + ((payload == NULL) ? 0 : payload_len); in fm_send_cmd()
427 hdr->len = ((payload == NULL) ? 0 : payload_len) + 3; in fm_send_cmd()
442 if (payload != NULL) in fm_send_cmd()
443 *(__be16 *)payload = cpu_to_be16(*(u16 *)payload); in fm_send_cmd()
445 } else if (payload != NULL) { in fm_send_cmd()
446 fm_cb(skb)->fm_op = *((u8 *)payload + 2); in fm_send_cmd()
448 if (payload != NULL) in fm_send_cmd()
449 memcpy(skb_put(skb, payload_len), payload, payload_len); in fm_send_cmd()
[all …]
/drivers/ps3/
Dps3-sys-manager.c242 const struct ps3_sys_manager_header *header, const void *payload) in ps3_sys_manager_write() argument
255 result = ps3_vuart_write(dev, payload, header->payload_size); in ps3_sys_manager_write()
273 } payload; in ps3_sys_manager_send_attr() local
275 BUILD_BUG_ON(sizeof(payload) != 8); in ps3_sys_manager_send_attr()
285 memset(&payload, 0, sizeof(payload)); in ps3_sys_manager_send_attr()
286 payload.version = 1; in ps3_sys_manager_send_attr()
287 payload.attribute = attr; in ps3_sys_manager_send_attr()
289 return ps3_sys_manager_write(dev, &header, &payload); in ps3_sys_manager_send_attr()
310 } payload; in ps3_sys_manager_send_next_op() local
312 BUILD_BUG_ON(sizeof(payload) != 16); in ps3_sys_manager_send_next_op()
[all …]
/drivers/net/ethernet/sfc/
Dselftest.c87 struct efx_loopback_payload payload; member
283 struct efx_loopback_payload *payload; in efx_loopback_rx_packet() local
291 payload = &state->payload; in efx_loopback_rx_packet()
294 received->ip.saddr = payload->ip.saddr; in efx_loopback_rx_packet()
296 received->ip.check = payload->ip.check; in efx_loopback_rx_packet()
307 if (memcmp(&received->header, &payload->header, ETH_HLEN) != 0) { in efx_loopback_rx_packet()
315 if (pkt_len != sizeof(*payload)) { in efx_loopback_rx_packet()
318 "%s loopback test\n", pkt_len, (int)sizeof(*payload), in efx_loopback_rx_packet()
324 if (memcmp(&received->ip, &payload->ip, sizeof(payload->ip)) != 0) { in efx_loopback_rx_packet()
332 if (memcmp(&received->msg, &payload->msg, sizeof(received->msg)) != 0) { in efx_loopback_rx_packet()
[all …]
/drivers/hid/
Dhid-wiimote-core.c1238 static void handler_keys(struct wiimote_data *wdata, const __u8 *payload) in handler_keys() argument
1245 ops->in_keys(wdata, payload); in handler_keys()
1253 ops->in_keys(wdata, payload); in handler_keys()
1259 static void handler_accel(struct wiimote_data *wdata, const __u8 *payload) in handler_accel() argument
1266 ops->in_accel(wdata, payload); in handler_accel()
1274 ops->in_accel(wdata, payload); in handler_accel()
1292 static void handler_ext(struct wiimote_data *wdata, const __u8 *payload, in handler_ext() argument
1307 if (len < 6 || !memcmp(payload, invalid, len)) in handler_ext()
1313 if (payload[5] & 0x01) in handler_ext()
1316 if (payload[4] & 0x01) { in handler_ext()
[all …]
/drivers/input/touchscreen/
Dzforce_ts.c345 static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) in zforce_touch_event() argument
352 count = payload[0]; in zforce_touch_event()
362 payload[9 * i + 2] << 8 | payload[9 * i + 1]; in zforce_touch_event()
364 payload[9 * i + 4] << 8 | payload[9 * i + 3]; in zforce_touch_event()
373 point.state = payload[9 * i + 5] & 0x0f; in zforce_touch_event()
374 point.id = (payload[9 * i + 5] & 0xf0) >> 4; in zforce_touch_event()
377 point.area_major = max(payload[9 * i + 6], in zforce_touch_event()
378 payload[9 * i + 7]); in zforce_touch_event()
379 point.area_minor = min(payload[9 * i + 6], in zforce_touch_event()
380 payload[9 * i + 7]); in zforce_touch_event()
[all …]
/drivers/md/
Ddm-android-verity.c194 static int read_block_dev(struct bio_read *payload, struct block_device *bdev, in read_block_dev() argument
200 payload->number_of_pages = DIV_ROUND_UP(length, PAGE_SIZE); in read_block_dev()
202 bio = bio_alloc(GFP_KERNEL, payload->number_of_pages); in read_block_dev()
211 payload->page_io = kzalloc(sizeof(struct page *) * in read_block_dev()
212 payload->number_of_pages, GFP_KERNEL); in read_block_dev()
213 if (!payload->page_io) { in read_block_dev()
219 for (i = 0; i < payload->number_of_pages; i++) { in read_block_dev()
220 payload->page_io[i] = alloc_page(GFP_KERNEL); in read_block_dev()
221 if (!payload->page_io[i]) { in read_block_dev()
226 if (!bio_add_page(bio, payload->page_io[i], PAGE_SIZE, 0)) { in read_block_dev()
[all …]
/drivers/misc/mic/scif/
Dscif_fence.c29 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_mark()
37 msg->payload[0] = ep->remote_ep; in scif_recv_mark()
38 msg->payload[2] = mark; in scif_recv_mark()
50 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_mark_resp()
52 (struct scif_fence_info *)msg->payload[1]; in scif_recv_mark_resp()
57 fence_req->dma_mark = (int)msg->payload[2]; in scif_recv_mark_resp()
73 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_wait()
83 msg->payload[0] = ep->remote_ep; in scif_recv_wait()
110 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_recv_wait_resp()
112 (struct scif_fence_info *)msg->payload[1]; in scif_recv_wait_resp()
[all …]
Dscif_nodeqp.c231 struct scif_qp *qp, u64 payload) in scif_setup_qp_connect_response() argument
238 qp->remote_qp = scif_ioremap(payload, sizeof(struct scif_qp), scifdev); in scif_setup_qp_connect_response()
510 msg.payload[0] = p2p_ji->ppi_da[SCIF_PPI_APER]; in scif_node_connect()
511 msg.payload[1] = p2p_ij->ppi_da[SCIF_PPI_MMIO]; in scif_node_connect()
512 msg.payload[2] = p2p_ij->ppi_da[SCIF_PPI_APER]; in scif_node_connect()
513 msg.payload[3] = p2p_ij->ppi_len[SCIF_PPI_APER] << PAGE_SHIFT; in scif_node_connect()
527 tmppayload = msg.payload[0]; in scif_node_connect()
528 msg.payload[0] = msg.payload[2]; in scif_node_connect()
529 msg.payload[2] = tmppayload; in scif_node_connect()
530 msg.payload[1] = p2p_ji->ppi_da[SCIF_PPI_MMIO]; in scif_node_connect()
[all …]
Dscif_epd.c176 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_cnctgnt()
182 ep->qp_info.gnt_pld = msg->payload[1]; in scif_cnctgnt()
183 ep->remote_ep = msg->payload[2]; in scif_cnctgnt()
201 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_cnctgnt_ack()
223 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_cnctgnt_nack()
240 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_cnctrej()
278 if (((u64)tmpep == msg->payload[1]) && in scif_discnct()
279 ((u64)tmpep->remote_ep == msg->payload[0])) { in scif_discnct()
319 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_discnt_ack()
335 struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; in scif_clientsend()
[all …]
/drivers/net/wireless/ath/ath9k/
Dar9003_mci.c81 u32 payload[4] = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffff00}; in ar9003_mci_remote_reset() local
83 ar9003_mci_send_message(ah, MCI_REMOTE_RESET, 0, payload, 16, in ar9003_mci_remote_reset()
90 u32 payload = 0x00000000; in ar9003_mci_send_lna_transfer() local
92 ar9003_mci_send_message(ah, MCI_LNA_TRANS, 0, &payload, 1, in ar9003_mci_send_lna_transfer()
111 u32 payload = 0x70000000; in ar9003_mci_send_lna_take() local
113 ar9003_mci_send_message(ah, MCI_LNA_TAKE, 0, &payload, 1, in ar9003_mci_send_lna_take()
128 u32 payload[4] = {0, 0, 0, 0}; in ar9003_mci_send_coex_version_query() local
134 MCI_GPM_SET_TYPE_OPCODE(payload, MCI_GPM_COEX_AGENT, in ar9003_mci_send_coex_version_query()
136 ar9003_mci_send_message(ah, MCI_GPM, 0, payload, 16, wait_done, true); in ar9003_mci_send_coex_version_query()
143 u32 payload[4] = {0, 0, 0, 0}; in ar9003_mci_send_coex_version_response() local
[all …]
/drivers/net/fddi/skfp/
Dess.c105 static int process_bw_alloc(struct s_smc *smc, long int payload, long int overhead);
124 u_long payload, overhead ; in ess_raf_received_pack() local
256 payload = ((struct smt_p_320f *)p)->mib_payload ; in ess_raf_received_pack()
264 DB_ESSN(2,"payload= %lx overhead= %lx\n",payload,overhead) ; in ess_raf_received_pack()
269 (void)process_bw_alloc(smc,(long)payload,(long)overhead) ; in ess_raf_received_pack()
310 payload = ((struct smt_p_320f *)p)->mib_payload ; in ess_raf_received_pack()
316 DB_ESSN(2,"payload= %lx overhead= %lx\n",payload,overhead) ; in ess_raf_received_pack()
321 if(!process_bw_alloc(smc,(long)payload,(long)overhead)) in ess_raf_received_pack()
378 static int process_bw_alloc(struct s_smc *smc, long int payload, long int overhead) in process_bw_alloc() argument
429 if (payload > MAX_PAYLOAD || overhead > 5000) { in process_bw_alloc()
[all …]
/drivers/scsi/pm8001/
Dpm8001_ctl.c390 struct pm8001_ioctl_payload payload; in pm8001_ctl_bios_version_show() local
393 payload.minor_function = 7; in pm8001_ctl_bios_version_show()
394 payload.offset = 0; in pm8001_ctl_bios_version_show()
395 payload.length = 4096; in pm8001_ctl_bios_version_show()
396 payload.func_specific = kzalloc(4096, GFP_KERNEL); in pm8001_ctl_bios_version_show()
397 if (!payload.func_specific) in pm8001_ctl_bios_version_show()
399 if (PM8001_CHIP_DISP->get_nvmd_req(pm8001_ha, &payload)) { in pm8001_ctl_bios_version_show()
400 kfree(payload.func_specific); in pm8001_ctl_bios_version_show()
407 *(payload.func_specific+bios_index)); in pm8001_ctl_bios_version_show()
408 kfree(payload.func_specific); in pm8001_ctl_bios_version_show()
[all …]
Dpm8001_init.c624 struct pm8001_ioctl_payload payload; in pm8001_init_sas_add() local
633 payload.minor_function = 4; in pm8001_init_sas_add()
634 payload.length = 4096; in pm8001_init_sas_add()
636 payload.minor_function = 0; in pm8001_init_sas_add()
637 payload.length = 128; in pm8001_init_sas_add()
642 payload.minor_function = 4; in pm8001_init_sas_add()
643 payload.length = 4096; in pm8001_init_sas_add()
645 payload.minor_function = 1; in pm8001_init_sas_add()
646 payload.length = 4096; in pm8001_init_sas_add()
648 payload.offset = 0; in pm8001_init_sas_add()
[all …]
/drivers/hwtracing/intel_th/
Dsth.c47 static void sth_iowrite(void __iomem *dest, const unsigned char *payload, in sth_iowrite() argument
53 writeq_relaxed(*(u64 *)payload, dest); in sth_iowrite()
57 writel_relaxed(*(u32 *)payload, dest); in sth_iowrite()
60 writew_relaxed(*(u16 *)payload, dest); in sth_iowrite()
63 writeb_relaxed(*(u8 *)payload, dest); in sth_iowrite()
73 const unsigned char *payload) in sth_stm_packet() argument
97 iowrite8(*payload, sth->base + reg); in sth_stm_packet()
101 sth_iowrite(&out->MERR, payload, size); in sth_stm_packet()
111 sth_iowrite(outp, payload, size); in sth_stm_packet()
119 sth_iowrite(outp, payload, size); in sth_stm_packet()
[all …]
/drivers/s390/scsi/
Dzfcp_dbf.c137 offsetof(struct fsf_status_read_buffer, payload); in zfcp_dbf_hba_fsf_uss()
140 zfcp_dbf_pl_write(dbf, srb->payload.data, rec->pl_len, in zfcp_dbf_hba_fsf_uss()
167 memcpy(&rec->u.be, &sr_buf->payload.bit_error, in zfcp_dbf_hba_bit_err()
185 struct zfcp_dbf_pay *payload = &dbf->pay_buf; in zfcp_dbf_hba_def_err() local
193 memset(payload, 0, sizeof(*payload)); in zfcp_dbf_hba_def_err()
195 memcpy(payload->area, "def_err", 7); in zfcp_dbf_hba_def_err()
196 payload->fsf_req_id = req_id; in zfcp_dbf_hba_def_err()
197 payload->counter = 0; in zfcp_dbf_hba_def_err()
201 while (payload->counter < scount && (char *)pl[payload->counter]) { in zfcp_dbf_hba_def_err()
202 memcpy(payload->data, (char *)pl[payload->counter], length); in zfcp_dbf_hba_def_err()
[all …]
/drivers/char/tpm/
Dtpm2-cmd.c427 struct trusted_key_payload *payload, in tpm2_seal_trusted() argument
446 tpm_buf_append_u16(&buf, 4 + TPM_DIGEST_SIZE + payload->key_len + 1); in tpm2_seal_trusted()
450 tpm_buf_append_u16(&buf, payload->key_len + 1); in tpm2_seal_trusted()
451 tpm_buf_append(&buf, payload->key, payload->key_len); in tpm2_seal_trusted()
452 tpm_buf_append_u8(&buf, payload->migratable); in tpm2_seal_trusted()
485 memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); in tpm2_seal_trusted()
486 payload->blob_len = blob_len; in tpm2_seal_trusted()
506 struct trusted_key_payload *payload, in tpm2_load_cmd() argument
516 private_len = be16_to_cpup((__be16 *) &payload->blob[0]); in tpm2_load_cmd()
517 if (private_len > (payload->blob_len - 2)) in tpm2_load_cmd()
[all …]
/drivers/firewire/
Dcore-transaction.c213 unsigned long long offset, void *payload, size_t length) in fw_fill_request() argument
223 packet->payload = payload; in fw_fill_request()
247 packet->header[3] = *(u32 *)payload; in fw_fill_request()
258 packet->payload = payload; in fw_fill_request()
352 unsigned long long offset, void *payload, size_t length, in fw_send_request() argument
383 speed, offset, payload, length); in fw_send_request()
396 void *payload; member
401 void *payload, size_t length, void *data) in transaction_callback() argument
406 memcpy(d->payload, payload, length); in transaction_callback()
421 void *payload, size_t length) in fw_run_transaction() argument
[all …]
/drivers/staging/rtl8188eu/core/
Drtw_security.c150 u8 *pframe, *payload, *iv; /* wepkey */ in rtw_wep_encrypt() local
174 payload = pframe+pattrib->iv_len+pattrib->hdrlen; in rtw_wep_encrypt()
179 *((__le32 *)crc) = getcrc32(payload, length); in rtw_wep_encrypt()
182 arcfour_encrypt(&mycontext, payload, payload, length); in rtw_wep_encrypt()
183 arcfour_encrypt(&mycontext, payload+length, crc, 4); in rtw_wep_encrypt()
186 *((__le32 *)crc) = getcrc32(payload, length); in rtw_wep_encrypt()
188 arcfour_encrypt(&mycontext, payload, payload, length); in rtw_wep_encrypt()
189 arcfour_encrypt(&mycontext, payload+length, crc, 4); in rtw_wep_encrypt()
206 u8 *pframe, *payload, *iv, wepkey[16]; in rtw_wep_decrypt() local
223 payload = pframe+prxattrib->iv_len+prxattrib->hdrlen; in rtw_wep_decrypt()
[all …]
/drivers/staging/rtl8712/
Drtl871x_security.c169 u8 *pframe, *payload, *iv; /*,*wepkey*/ in r8712_wep_encrypt() local
190 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in r8712_wep_encrypt()
196 payload, length)); in r8712_wep_encrypt()
198 arcfour_encrypt(&mycontext, payload, payload, in r8712_wep_encrypt()
200 arcfour_encrypt(&mycontext, payload + length, in r8712_wep_encrypt()
207 payload, length)); in r8712_wep_encrypt()
209 arcfour_encrypt(&mycontext, payload, payload, in r8712_wep_encrypt()
211 arcfour_encrypt(&mycontext, payload + length, in r8712_wep_encrypt()
226 u8 *pframe, *payload, *iv, wepkey[16]; in r8712_wep_decrypt() local
246 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in r8712_wep_decrypt()
[all …]
/drivers/net/wireless/brcm80211/brcmfmac/
Dvendor.c38 unsigned int payload, ret_len; in brcmf_cfg80211_vndr_cmds_dcmd_handler() local
69 payload = max_t(unsigned int, ret_len, len) + 1; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
70 dcmd_buf = vzalloc(payload); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
91 payload = msglen + sizeof(msglen); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
92 reply = cfg80211_vendor_cmd_alloc_reply_skb(wiphy, payload); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
/drivers/staging/rtl8723au/core/
Drtw_security.c155 u8 *pframe, *payload, *iv; /* wepkey */ in rtw_wep_encrypt23a() local
182 payload = pframe + pattrib->iv_len + pattrib->hdrlen; in rtw_wep_encrypt23a()
189 crc = cpu_to_le32(getcrc32(payload, length)); in rtw_wep_encrypt23a()
192 arcfour_encrypt(&mycontext, payload, payload, length); in rtw_wep_encrypt23a()
193 arcfour_encrypt(&mycontext, payload + length, in rtw_wep_encrypt23a()
198 crc = cpu_to_le32(getcrc32(payload, length)); in rtw_wep_encrypt23a()
200 arcfour_encrypt(&mycontext, payload, payload, length); in rtw_wep_encrypt23a()
201 arcfour_encrypt(&mycontext, payload + length, in rtw_wep_encrypt23a()
219 u8 *pframe, *payload, *iv, wepkey[16]; in rtw_wep_decrypt23a() local
241 payload = pframe + prxattrib->iv_len + prxattrib->hdrlen; in rtw_wep_decrypt23a()
[all …]
/drivers/misc/sgi-xp/
Dxp.h309 xpc_send(short partid, int ch_number, u32 flags, void *payload, in xpc_send() argument
312 return xpc_interface.send(partid, ch_number, flags, payload, in xpc_send()
317 xpc_send_notify(short partid, int ch_number, u32 flags, void *payload, in xpc_send_notify() argument
320 return xpc_interface.send_notify(partid, ch_number, flags, payload, in xpc_send_notify()
325 xpc_received(short partid, int ch_number, void *payload) in xpc_received() argument
327 return xpc_interface.received(partid, ch_number, payload); in xpc_received()

12345678910