/drivers/net/wireless/ti/wlcore/ |
D | spi.c | 212 u32 chunk_len; in wl12xx_spi_raw_read() local 215 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); in wl12xx_spi_raw_read() 222 *cmd |= (chunk_len << WSPI_CMD_BYTE_LENGTH_OFFSET) & in wl12xx_spi_raw_read() 247 memset(buf, 0, chunk_len); in wl12xx_spi_raw_read() 255 t[0].len = chunk_len; in wl12xx_spi_raw_read() 262 addr += chunk_len; in wl12xx_spi_raw_read() 263 buf += chunk_len; in wl12xx_spi_raw_read() 264 len -= chunk_len; in wl12xx_spi_raw_read() 279 u32 chunk_len; in wl12xx_spi_raw_write() local 290 chunk_len = min_t(size_t, WSPI_MAX_CHUNK_SIZE, len); in wl12xx_spi_raw_write() [all …]
|
/drivers/nfc/nxp-nci/ |
D | firmware.c | 104 size_t chunk_len; in nxp_nci_fw_send_chunk() local 114 chunk_len = info->max_payload - NXP_NCI_FW_HDR_LEN - NXP_NCI_FW_CRC_LEN; in nxp_nci_fw_send_chunk() 117 if (remaining_len > chunk_len) { in nxp_nci_fw_send_chunk() 120 chunk_len = remaining_len; in nxp_nci_fw_send_chunk() 124 header |= chunk_len & NXP_NCI_FW_FRAME_LEN_MASK; in nxp_nci_fw_send_chunk() 127 memcpy(skb_put(skb, chunk_len), fw_info->data + fw_info->written, in nxp_nci_fw_send_chunk() 128 chunk_len); in nxp_nci_fw_send_chunk() 130 crc = nxp_nci_fw_crc(skb->data, chunk_len + NXP_NCI_FW_HDR_LEN); in nxp_nci_fw_send_chunk() 135 r = chunk_len; in nxp_nci_fw_send_chunk()
|
/drivers/media/usb/gspca/stv06xx/ |
D | stv06xx.c | 414 int id, chunk_len; in stv06xx_pkt_scan() local 425 chunk_len = (data[2] << 8) | data[3]; in stv06xx_pkt_scan() 426 PDEBUG(D_PACK, "Chunk id: %x, length: %d", id, chunk_len); in stv06xx_pkt_scan() 431 if (len < chunk_len) { in stv06xx_pkt_scan() 449 int skip = (sd->to_skip < chunk_len) ? in stv06xx_pkt_scan() 450 sd->to_skip : chunk_len; in stv06xx_pkt_scan() 453 chunk_len -= skip; in stv06xx_pkt_scan() 458 data, chunk_len); in stv06xx_pkt_scan() 474 if (chunk_len) in stv06xx_pkt_scan() 488 if (chunk_len) in stv06xx_pkt_scan() [all …]
|
/drivers/nfc/nfcmrvl/ |
D | fw_dnld.c | 301 priv->fw_dnld.chunk_len = len; in process_state_fw_dnld() 317 if (priv->fw_dnld.chunk_len == 0) { in process_state_fw_dnld() 325 out_skb = alloc_lc_skb(priv, priv->fw_dnld.chunk_len); in process_state_fw_dnld() 328 memcpy(skb_put(out_skb, priv->fw_dnld.chunk_len), in process_state_fw_dnld() 331 priv->fw_dnld.chunk_len); in process_state_fw_dnld() 344 priv->fw_dnld.offset += priv->fw_dnld.chunk_len; in process_state_fw_dnld() 345 priv->fw_dnld.chunk_len = 0; in process_state_fw_dnld()
|
D | fw_dnld.h | 82 int chunk_len; member
|
/drivers/media/usb/go7007/ |
D | go7007-fw.c | 1553 int codespace = 64 * 1024, i = 0, srclen, chunk_len, chunk_flags; in go7007_construct_fw_image() local 1587 chunk_len = __le16_to_cpu(src[1]); in go7007_construct_fw_image() 1588 if (chunk_len + 2 > srclen) { in go7007_construct_fw_image() 1605 if (codespace - i < chunk_len) { in go7007_construct_fw_image() 1610 memcpy(&code[i], &src[2], chunk_len * 2); in go7007_construct_fw_image() 1611 i += chunk_len; in go7007_construct_fw_image() 1614 srclen -= chunk_len + 2; in go7007_construct_fw_image() 1615 src += chunk_len + 2; in go7007_construct_fw_image()
|
/drivers/misc/mic/scif/ |
D | scif_api.c | 1109 int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1))); in scif_user_send() local 1120 tmp = kmalloc(chunk_len, GFP_KERNEL); in scif_user_send() 1133 loop_len = min(chunk_len, loop_len); in scif_user_send() 1170 int chunk_len = min(len, (1 << (MAX_ORDER + PAGE_SHIFT - 1))); in scif_user_recv() local 1181 tmp = kmalloc(chunk_len, GFP_KERNEL); in scif_user_recv() 1194 loop_len = min(chunk_len, loop_len); in scif_user_recv()
|
/drivers/net/wimax/i2400m/ |
D | fw.c | 653 size_t chunk_len = ALIGN(__chunk_len, I2400M_PL_ALIGN); in i2400m_download_chunk() local 657 u8 cmd_payload[chunk_len]; in i2400m_download_chunk() 666 memset(buf->cmd_payload + __chunk_len, 0xad, chunk_len - __chunk_len); in i2400m_download_chunk() 673 ret = i2400m_bm_cmd(i2400m, &buf->cmd, sizeof(buf->cmd) + chunk_len, in i2400m_download_chunk()
|
/drivers/hid/ |
D | wacom_sys.c | 649 const unsigned chunk_len = len / 4; /* 4 chunks are needed to be sent */ in wacom_led_putimage() local 651 buf = kzalloc(chunk_len + 3 , GFP_KERNEL); in wacom_led_putimage() 667 memcpy(buf + 3, img + i * chunk_len, chunk_len); in wacom_led_putimage() 670 buf, chunk_len + 3, WAC_CMD_RETRIES); in wacom_led_putimage()
|
/drivers/net/wireless/ipw2x00/ |
D | ipw2200.c | 3247 u32 chunk_len; in ipw_load_firmware() local 3254 chunk_len = le32_to_cpu(chunk->length); in ipw_load_firmware() 3257 nr = (chunk_len + CB_MAX_LENGTH - 1) / CB_MAX_LENGTH; in ipw_load_firmware() 3265 size = min_t(u32, chunk_len - i * CB_MAX_LENGTH, in ipw_load_firmware() 3280 chunk_len); in ipw_load_firmware() 3286 offset += chunk_len; in ipw_load_firmware() 3847 le16_to_cpu(bd->u.data.chunk_len[i]), in ipw_queue_tx_free_tfd() 10259 tfd->u.data.chunk_len[i] = in ipw_tx_skb() 10275 tfd->u.data.chunk_len[i] = cpu_to_le16(remaining_bytes); in ipw_tx_skb()
|
D | ipw2200.h | 504 __le16 chunk_len[NUM_TFD_CHUNKS]; member
|