Searched refs:CMD_PACKET_SIZE (Results 1 – 2 of 2) sorted by relevance
/drivers/net/usb/ |
D | cx82310_eth.c | 48 #define CMD_PACKET_SIZE 64 macro 67 u8 *buf = kzalloc(CMD_PACKET_SIZE, GFP_KERNEL); in cx82310_cmd() 75 memcpy(buf + 4, wdata, min_t(int, wlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd() 79 CMD_PACKET_SIZE, &actual_len, CMD_TIMEOUT); in cx82310_cmd() 90 buf, CMD_PACKET_SIZE, &actual_len, in cx82310_cmd() 121 min_t(int, rlen, CMD_PACKET_SIZE - 4)); in cx82310_cmd()
|
/drivers/usb/atm/ |
D | cxacru.c | 54 #define CMD_PACKET_SIZE 64 /* Should be maxpacket(ep)? */ macro 55 #define CMD_MAX_CONFIG ((CMD_PACKET_SIZE / 4 - 1) / 2) 457 __le32 data[CMD_PACKET_SIZE / 4]; in cxacru_sysfs_store_adsl_config() 588 const int stride = CMD_PACKET_SIZE - 4; in cxacru_cm() 591 int wbuflen = ((wsize - 1) / stride + 1) * CMD_PACKET_SIZE; in cxacru_cm() 592 int rbuflen = ((rsize - 1) / stride + 1) * CMD_PACKET_SIZE; in cxacru_cm() 617 for (offb = offd = 0; offd < wsize; offd += stride, offb += CMD_PACKET_SIZE) { in cxacru_cm() 645 if (actlen % CMD_PACKET_SIZE || !actlen) { in cxacru_cm() 654 for (offb = offd = 0; offd < rsize && offb < actlen; offb += CMD_PACKET_SIZE) { in cxacru_cm() 690 const int stride = CMD_PACKET_SIZE / (4 * 2) - 1; in cxacru_cm_get_array() [all …]
|